The MU forums have moved to WordPress.org

i have a problem with upload images/media (11 posts)

  1. yair
    Member
    Posted 15 years ago #

    when i upload image,
    i dont see the image after upload
    wp say thay she put the image in
    http://www.myblog.com/1/files/2009/02/46image2.jpeg

    note: no folder "files" on http://www.myblog.com/1/

    my setting like that
    in fields
    Upload Path = wp-content/blogs.dir/1/files
    Fileupload Url = ww.myblog.com/wp-content/blogs.dir/1/files

    what i need to do in my setting to fix it?

  2. williamsydu
    Member
    Posted 15 years ago #

    I have the same problem.
    There are many sugguestions about the problem.
    But they don't work.

    One blog says you can change the folder in the admin page, but I can't the item. I use wp mu version 2.71 with centos 5.3.

    Will wp mu 2.8 fix this problem? I have researched many topic about this problem.

  3. Person
    Member
    Posted 15 years ago #

    The blog settings for upload path, fileupload url, and upload url path don't have any effect on where uploaded files are stored and what url rewrite is used for specific blogs in WPMU. (These are hardcoded in wpmu-functions.php and .htaccess)

    First off, http://www.myblog.com/blogname/files/2009/02/46image2.jpeg is the rewritten url. This means that this is what appears in the link bar for the blog owner and visitors (think of it like a mask). In reality, the files are actually stored within /wp-content/blogs.dir/blogid/files/, so you should be looking for your image at the following path: /wp-content/blogs.dir/blogid/files/2009/02/46image2.jpeg

    If you're having trouble uploading, then at some point, something isn't working. Do you get any other error message? Is the file actually being uploaded? Have you tried using both the flash uploader and non-flash uploader? Can you access the file (real url) directly in your browser? Are permissions set correctly?

  4. tgriffin
    Member
    Posted 15 years ago #

    When I try to upload I get the follwoing error:

    Unable to create directory /var/www/vhosts/uua.org/subdomains/blogs/httpdocs/wp-content/blogs.dir/2/files/. Is its parent directory writable by the server?

    What should the permissions on blogs.dir look like? And blogs.dir is empty.

    Thanks!

  5. delayedinsanity
    Member
    Posted 15 years ago #

    tgriffin, what do your permissions and ownership currently look like on blogs.dir/ ? If you're not sure how to check, ls -al will give you all the information you need, with the first column being your permissions, and the third and fourth telling you the user and group its owned by.

    In most situations, if not all, it should be owned by your webserver (usually 'www-data', but could be 'apache' or something else depending on your servers configuration) and chmod 755 (drwxr-xr-x) should be more than adequate.

  6. tgriffin
    Member
    Posted 15 years ago #

    My permissions for blogs.dir is

    drwxrwxrwx 2 apache apache 4096 Jun 17 13:07 blogs.dir

    Any help appreciated.

    Thanks.

  7. delayedinsanity
    Member
    Posted 15 years ago #

    It's never advisable to have anything chmod 777, especially in your web root, so you might want to chmod 755 blogs.dir/ ... other than that, looks okay from here, maybe check your blogs.dir/2/ for the same information and make sure it hasn't been made unwritable for some reason?

  8. tgriffin
    Member
    Posted 15 years ago #

    Delayedinsanity - thanks for responding so quickly. I'm at a loss and my php chops clearly aren't up to the task of trying to customize something. I've had a programmer take a quick look but he didn't come up with anything obvious. Could it be an htaccess issue with my host? Host is Media Temple.

    Thanks.

  9. tgriffin
    Member
    Posted 15 years ago #

    Should I create /blogid/files/ etc. as "person" above suggests?

  10. tgriffin
    Member
    Posted 14 years ago #

    Hi all, spent hours on this and so did my programmer. He concluded that it was some kind of odd set up with the host server, Media Temple. We moved the site to Rackspace and it functions fine after default install...so far.

    -Tim

  11. irwnsyh
    Member
    Posted 14 years ago #

    same problem on me. I have read much topic at this forum n zero result. I was frustation. But, finally I am succes with this way.
    I try install wp-mu 2.6 first and then follow Upgrading WPMU at http://codex.wordpress.org/Upgrading_WPMU.
    it's worked for me and have no problem with uploding image.

About this Topic