diff --git a/app/models/Entities/Image.php b/app/models/Entities/Image.php
index 2ffb3adc..60cb483b 100644
--- a/app/models/Entities/Image.php
+++ b/app/models/Entities/Image.php
@@ -92,6 +92,7 @@
public function ensureDirectoryExists() {
$destination = $this->getDirectory();
+ umask(0);
if (!is_dir($destination))
mkdir($destination, 777, true);
diff --git a/app/models/Entities/Track.php b/app/models/Entities/Track.php
index c2e3aca7..d0eeb4ec 100644
--- a/app/models/Entities/Track.php
+++ b/app/models/Entities/Track.php
@@ -349,6 +349,7 @@
public function ensureDirectoryExists() {
$destination = $this->getDirectory();
+ umask(0);
if (!is_dir($destination))
mkdir($destination, 777);
diff --git a/spa.pony.fm.iml b/spa.pony.fm.iml
index 6ff7b7ed..a1427afa 100644
--- a/spa.pony.fm.iml
+++ b/spa.pony.fm.iml
@@ -27,6 +27,7 @@
+
@@ -75,6 +76,7 @@
+
@@ -115,6 +117,7 @@
+