ROCKINDANO Posted August 12, 2011 Share Posted August 12, 2011 I have created a page for users to upload files, but for some reason end users can't access the files. we are getting an access denied page and every time files get uploaded i have to ftp to the site and change the permissions. is there something i am missing? Thank you in advance. Quote Link to comment https://forums.phpfreaks.com/topic/244615-have-a-problem-when-uploading-files-with-a-php-script/ Share on other sites More sharing options...
TeNDoLLA Posted August 12, 2011 Share Posted August 12, 2011 Try setting the permissions with php's chmod function right after the file has been uploaded in your script. Maybe this helps. http://php.net/manual/en/function.chmod.php Quote Link to comment https://forums.phpfreaks.com/topic/244615-have-a-problem-when-uploading-files-with-a-php-script/#findComment-1256440 Share on other sites More sharing options...
ROCKINDANO Posted August 12, 2011 Author Share Posted August 12, 2011 thanks that seem to do the trick. Quote Link to comment https://forums.phpfreaks.com/topic/244615-have-a-problem-when-uploading-files-with-a-php-script/#findComment-1256461 Share on other sites More sharing options...
ROCKINDANO Posted August 25, 2011 Author Share Posted August 25, 2011 the chmod is not changing permissions on the file being uploaded Quote Link to comment https://forums.phpfreaks.com/topic/244615-have-a-problem-when-uploading-files-with-a-php-script/#findComment-1261995 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.