• I set up the Upload feature, created a /photos directory on my site, and put that directory name in the b2config file. The photos directory has been set to 766 with chmod. I uploaded the photo, and it said it went. It didn’t appear in the directory. So I ftp’d the file up to see if the link in my blog entry at least worked. It appears as a broken graphic link. I did a view source, and it shows the right address for the jpg, and double checking with my FTP client, the file is there. If I then try to view the JPG file directly with my browser, it says I don’t have permission. This is probably more of a linux problem than B2, but I’m hoping someone can point me in the right direction to fix this. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • who owns the directory? who owns the file? I suspect it’s root. You probably need to change it to the user that apache runs under. Check to see if the user that apache runs under can access these directories/files.

    It really varies. It should be writable by the webserver, but if the permissions are too generous some configurations of Apache won’t display it. I would just reload and experiment until you can see the image and then leave it at that.

    I have problem with uploading images – here is the message i get:

    Warning: copy(/home/______/public_html/pressing/wp-content/bubbles.jpg): failed to open stream:
    Permission denied in /home/_____/public_html/pressing/wp-admin/upload.php on line 171

    Warning: chmod(): Permission denied in /home/______/public_html/pressing/wp-admin/upload.php on
    line 177

    File uploaded!
    Your file bubbles.jpg was uploaded successfully!

    at the end file is not uploaded. when i ftp it the only thing i get is broken graphic link

    thanks

    Moderator James Huff

    (@macmanx)

    Set the permissions for your upload directory to 777 (CHMOD 777).

    thank you

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘File Upload Problems’ is closed to new replies.