Wrong file permissions

Fix to unable to delete file from FTP server after uploading using PHP function move_uploaded_file.
I was struggling with this for a while, I have a PHP script to upload a file to a web space (Uploadifive library), works perfect with nice ajax and bootstrap UI, however, that script somehow prevents me from deleting file just uploaded.

This is mostly because in Windows Server, PHP function inherits the permission of the temp folder when moves files from temp folder to final destination.

Found it somewhere online ...

CodeFunctionName What is this?

Public

Tested

Original Work

Access is limited.

Login here using your Linkedin account. to see or download code.

No registration, not another password to remember, login using your Linkedin account and have access to all public codes in Mydev.net

Linkedin Login

Views 755

Downloads 310

CodeID
DB ID