upload file to server

Questions related to customising nuBuilder Forte with Javascript or PHP.

Re: upload file to server

Postby kev1n » Fri Nov 22, 2019 11:13 pm

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
kev1n
 
Posts: 728
Joined: Mon Oct 15, 2018 2:13 am

Re: upload file to server

Postby ernesttan1976 » Sat May 16, 2020 5:45 pm

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.
ernesttan1976
 
Posts: 4
Joined: Sat May 16, 2020 5:38 pm

Re: upload file to server

Postby kev1n » Sat May 16, 2020 5:59 pm

Does the file need underscores here (in red)?

1574424664_5dd7d05856d12_5da701edb0fb627_tekst_wonen_beleidsplan.pdf
kev1n
 
Posts: 728
Joined: Mon Oct 15, 2018 2:13 am

Re: upload file to server

Postby ernesttan1976 » Sat May 16, 2020 6:03 pm

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!
ernesttan1976
 
Posts: 4
Joined: Sat May 16, 2020 5:38 pm

Re: upload file to server

Postby admin » Sun May 17, 2020 4:58 am

.
admin
Site Admin
 
Posts: 3267
Joined: Mon Jun 15, 2009 9:53 am

Previous

Return to Custom Code