mirror of
https://github.com/claradex/nativegallery.git
synced 2024-11-15 03:31:10 +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
|
views/pages/t.php
|
||||||
rules.txt
|
rules.txt
|
||||||
rules.txt
|
rules.txt
|
||||||
|
/uploads/*
|
||||||
|
|
|
@ -63,7 +63,7 @@ class Upload
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@mkdir ("{$_SERVER['DOCUMENT_ROOT']}/uploads/{$location}");
|
mkdir("{$_SERVER['DOCUMENT_ROOT']}/uploads/{$location}", 0777, true);
|
||||||
move_uploaded_file ($tmpname, "{$_SERVER['DOCUMENT_ROOT']}/uploads/{$folder}");
|
move_uploaded_file ($tmpname, "{$_SERVER['DOCUMENT_ROOT']}/uploads/{$folder}");
|
||||||
|
|
||||||
$this->type = $type;
|
$this->type = $type;
|
||||||
|
|
Loading…
Reference in a new issue