diff --git a/.gitignore b/.gitignore index 08507e6..876a6b1 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ ngallery.yaml views/pages/t.php rules.txt rules.txt +/uploads/* diff --git a/app/Services/Upload.php b/app/Services/Upload.php index 8a703f8..b316471 100644 --- a/app/Services/Upload.php +++ b/app/Services/Upload.php @@ -63,7 +63,7 @@ class Upload } else { - @mkdir ("{$_SERVER['DOCUMENT_ROOT']}/uploads/{$location}"); + mkdir("{$_SERVER['DOCUMENT_ROOT']}/uploads/{$location}", 0777, true); move_uploaded_file ($tmpname, "{$_SERVER['DOCUMENT_ROOT']}/uploads/{$folder}"); $this->type = $type;