#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    San Antonio
    Posts
    4
    Rep Power
    0
    I am attempting to setup a file upload and I am getting an error message which is stumping me We are using Apache on Redhat 6.2
    Here is the error message we get when we attempt to upload an image


    Warning: Unable to create '/home/jj/picparty.com/users/ss/tmp/phproJvoQ': No
    such file or directory in /home/jj/picparty.com/add.php3 on line 6
    failed to copy file
    upload report
    upload tmp file:
    file name:
    target file name:
    target directory: c:apachehtdocstmp
    file size:
    file type:

    Thanks for any feedback. I believe the problem is buried within our server.

    DD
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    3
    Rep Power
    0
    What does line 6 of add.php3 say?
  4. #3
  5. No Profile Picture
    Gödelian monster
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 1999
    Location
    Central Florida, USA
    Posts
    2,307
    Rep Power
    62
    It's most probably just a file/directory permission thing. The PHP process executes server commands under the username and group 'nobody', so unless your directory is world-writeable OR is chowned to nobody:nobody, PHP will be unable to upload a file. For better security, I recommend the second choice; just create a directory for upload and chown it to nobody:nobody.
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>so unless your directory is world-writeable OR is chowned to nobody:nobody

    Yes. So at /home/jj/picparty.com/users/ss/tmp/, the "tmp" directory needs to be chmodded 757 so "nobody" has the write permission. Please note that to copy to, to need write permission.

IMN logo majestic logo threadwatch logo seochat tools logo