mirror of
https://github.com/claradex/nativegallery.git
synced 2024-11-14 19:19:08 +03:00
fix upload to folder if images placed on server
This commit is contained in:
parent
e03c19d006
commit
ecd1b0f286
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -12,3 +12,4 @@ ngallery.yaml
|
|||
views/pages/t.php
|
||||
rules.txt
|
||||
rules.txt
|
||||
/uploads/*
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue