Jump to content

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?
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.