Search code examples
phpfile-uploadphpbbphpbb3winscp

When a file is uploaded from php uploader WinSCP is unable to modify it


If a file is uploaded or created in any way by a php file I cannot modify it, however I can delete it. This is really irritating.

P.S.: All of the files that have been created or uploaded have been done with phpBB 3.0.11


Solution

  • Most probably, PHP is running under the web server user (httpd, www, www-data or similar). When files are uploaded, they are owned by this user.

    You cannot modify the files as you are not the owner. You can however delete them as you most probably own the upload directory.

    Some solutions are: