Images not uploading (3 posts)

  1. Adam
    Posted 4 years ago #

    While this is a multisite question, this started happening after 3.4 update. So I am not sure where this belongs.

    any ways, before 3.4 update I had 4 sites, all 4 sites could upload images just fine. After, one of them uploads the images, according the Cpanel, but the link to it just gives me a 404 error. According to cpanel the image is right where it should be.

    My htaccess is as follows:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]


  2. Is the problem site the 'root' site, id 1?

    Give some more info.

    What are the expected upload paths for the sites that are working?
    What is the expected upload path for the site that isn't working? - Where are the images going instead?

  3. Adam
    Posted 4 years ago #

    No the issue is not root site.

    Essentially, as a we all know with a multi-site install your images do not go to wp-content/uploads. they go to site/file/year/month/file name.

    This is how all my sites are set up. they all work, except for one. So if I upload an immage called mini to the site the file path it sais the image is at is:


    if you go there you get a 404,

    How ever lets upload a file to blackandwhite.adambalan.com which gives us a file path of:


    If we go there, we see my fabulous face.

    all images, if you have multi site, are uploaded to wp-content/blogs.dir/files/siteid/year/month/file

    in this case: site id = 11

    so if we now go to: http://adambalan.com/wp-content/blogs.dir/11/files/2012/06/Arrows.png we see arrows.

    Hope that provides you with more info.

Topic Closed

This topic has been closed to new replies.

About this Topic