Jump to content


Photo

upload errors


  • Please log in to reply
2 replies to this topic

#1 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 29 November 2005 - 12:41 PM

Hi people.

I need a little bit of info if someone would be so kind.....

I have a php upload script that is not working.

The script is similar to the upload class written in the tutorial secition but the

is_uploaded_file function($_FILE['file']['tmp_name']

returns false.

php.ini has:
safe mode: off
open_basedir: no value
uploaded_temp_dir: no value
fileuploads: on

before altering the scripts to handle errors I would get Permission denied erros on the move_uploaded_file function.

I am not sure but this must be a group permission thing.

If anyone could shed any light I would be very greatful.

If you need anymore info please ask.
follow me on twitter @PHPsycho

#2 manmadareddy

manmadareddy
  • Members
  • PipPipPip
  • Advanced Member
  • 50 posts

Posted 29 November 2005 - 01:27 PM

Give 775 permission for the directory in which you want to store this uploaded file.

#3 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 29 November 2005 - 02:13 PM

done - still same error
follow me on twitter @PHPsycho




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users