The MU forums have moved to WordPress.org

File Upload problem (7 posts)

  1. pramodd
    Member
    Posted 16 years ago #

    1] I have WPMU setup in public_html/wordpress/on a shared server running Cpanel.

    2] All blogs go into their own subdirectory ie.

    http://www.domain.com/wordpress/blogone/
    http://www.domain.com/wordpress/blogtwo/

    and so on.

    3] Upload setting in Site Admin > Blogs for the 1st blog
    http://www.domain.com/wordpress/blogone/ is as follows:

    Upload Path: wp-content/blogs.dir/1/files
    Fileupload Url: http://domain.com/wordpress/
    Fileupload Realpath: http://domain.com/wordpress/wp-content/blogs.dir/1/files

    4] Here are contents of my .htaccess file [located in public_html/wordpress/]

    RewriteEngine On
    RewriteBase /wordpress/

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    5] When I upload .jpg file from "write post" section it shows under "Browse all" When I try and send file to editor the image is not visible in the editor window.

    When I look at the source code it shows the
    image URL as
    http://domain.com/wordpress/files/image.jpg

    The image is actually being uploaded to
    http://domain.com/wordpress/wp-content/blogs.dir/1/files/
    This is the correct folder for all uploads for this blog.

    Why is the image URL different in the browse all section of "Write Post"

    Images are not being added to blog posts. Please help solve the problem.

  2. lunabyte
    Member
    Posted 16 years ago #

    Why is the image URL different in the browse all section of "Write Post"

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

  3. pramodd
    Member
    Posted 16 years ago #

    Hi lunabyte,

    These rewrite rules are already a part of my .htaccess file [please see above]
    I am still unable to use images I have uploaded from the upload section.

    Regards,
    -PD-

  4. andrea_r
    Moderator
    Posted 16 years ago #

    Wasn't this a recent bug? pramodd, what MU version are you running?

  5. pramodd
    Member
    Posted 16 years ago #

    I am using latest version of WPMU - ver 1.2.5a

  6. theapparatus
    Member
    Posted 16 years ago #

    Then you're not using the latest version of wpmu. :)

    Was fixed a couple of versions ago. Here's the thread on the latest version. if you can't upgrade currently, here's the fix.

  7. pramodd
    Member
    Posted 16 years ago #

    Thank you so much theapparatus .. the fix has solved the problem of the image not showing up in the editor window.
    Now I have another problem:
    a] I am able to upload images using the upload function. However, when I save a post the image isn't showing up on the actual post.

    2] Even changing the image URL from
    http://domain.com/wordpress/files/image.jpg
    to http://domain.com/wordpress/wp-content/blogs.dir/1/files/image.jpg
    does not display the image in the actual post.

    Any answers???

About this Topic