Jump to content

[SOLVED] Permissions problem


moola

Recommended Posts

I'm using a simple form to allow users to upload videos with certain extensions (as shown in code) onto the website. My upload directory is chmoded to 777 as well as the upload.php itself.
This is integrated with phpbb forum so the user has to sign in to be able to view the form itself(this explains the weird code) in the script.
OK Here is the problem:
Some users can upload a video and some users are always complaining that they get the following error message
"change permission to 777 failed."
They have tried with all supported formats. Some have been successfull some have not. I took a survey and both ie and firefox have succesfully uploaded. I have it myself with ie and firefox and I have been successfull uploading.
Why the heck are some people getting the error message and some are not?!?! ???

Here is the code
http://www.ftvteen.com/CODE.TXT
Link to comment
https://forums.phpfreaks.com/topic/28270-solved-permissions-problem/
Share on other sites

Im not sure, your going to need to try some debugging. Tak ea look at the filepath when there is a problem.

[code=php:0]
if (!chmod($file_path,0777))
  echo $file_path;
  $message = "change permission to 777 failed.";
[/code]

You might want to email this to yourself, maybe the path is getting messed up?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.