Little Fix, when a upload directory does not exists on most newest workspaces

This commit is contained in:
Erik Amaru Ortiz
2014-05-14 09:16:20 -04:00
parent 06f7940865
commit 7fdc554a69

View File

@@ -210,6 +210,10 @@ abstract class Importer
throw new \Exception("Error while uploading file. Error code: {$data["error"]}");
}
if (! is_dir($this->getSaveDir())) {
Util\Common::mk_dir($this->getSaveDir());
}
$this->filename = $this->getSaveDir() . $data["name"];
$oldUmask = umask(0);