Page 6 of 6
Re: upload file to server
Posted: Fri Nov 22, 2019 2:43 pm
by kev1n
You can also find some useful answers about this topic here:
https://stackoverflow.com/questions/693 ... does-exist
Especially this one:
It's because of safe mode. You can turn it off or include the directory in safe_mode_include_dir. Or change file ownership / permissions for those files.
php.net: file_exists()
php.net: safe mode
Re: upload file to server
Posted: Sat May 16, 2020 10:15 am
by ernesttan1976
johan wrote:Kev1n
[0] : File does not exist /var/www/html/libs/upload/documents/1574424664_5dd7d05856d12_5da701edb0fb627_tekst wonen beleidsplan.pdf
Johan
1574424664_5dd7d05856d12_5da701edb0fb627_tekst wonen beleidsplan.pdf
The file name has no underscores that's why it failed to delete.
Re: upload file to server
Posted: Sat May 16, 2020 10:29 am
by kev1n
Does the file need underscores here (in red)?
1574424664_5dd7d05856d12_5da701edb0fb627_tekst_wonen_beleidsplan.pdf
Re: upload file to server
Posted: Sat May 16, 2020 10:33 am
by ernesttan1976
ernesttan1976 wrote:johan wrote:Kev1n
[0] : File does not exist /var/www/html/libs/upload/documents/1574424664_5dd7d05856d12_5da701edb0fb627_tekst wonen beleidsplan.pdf
Johan
1574424664_5dd7d05856d12_5da701edb0fb627_tekst wonen beleidsplan.pdf
The file name has no underscores that's why it failed to delete.
Hmmm seems like I'm wrong, its not the underscore but the permissions...(644)
Edit: I found my error, nubuilder4 is missing in the path. Thanks!
Re: upload file to server
Posted: Sat May 16, 2020 9:28 pm
by admin
.