You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly i would like to say good work, this is decent script.
I was getting: Warning: mkdir(): File exists in <dir>\upload.php on line 573
when trying to use a pre-created directory, or uploading more than once to same directory after creation.
I searched the class and found set_destination() and sub-sequentially is_writable() was being called on a relative path and returning NULL, I had to change:
ln. 558
protected function destination_exist() {
return is_writable($this->destination);
}
To this:
protected function destination_exist() {
return is_writable($this->root . $this->destination);
}
To get it to check the directory correctly
The text was updated successfully, but these errors were encountered:
Firstly i would like to say good work, this is decent script.
I was getting:
Warning: mkdir(): File exists in <dir>\upload.php on line 573
when trying to use a pre-created directory, or uploading more than once to same directory after creation.
I searched the class and found
set_destination()
and sub-sequentiallyis_writable()
was being called on a relative path and returning NULL, I had to change:ln. 558
To this:
To get it to check the directory correctly
The text was updated successfully, but these errors were encountered: