The MU forums have moved to WordPress.org

File Upload Error (3 posts)

  1. levi.putna
    Member
    Posted 15 years ago #

    I am having problems uploading images, I have been struggling to fix it for the past two weeks with no luck.

    When i upload a file, the file is uploaded but I cannot see it in the editor or directly pointing to the url where the file is unless I remove these two lines from my .htaccess file.
    '
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
    '

    This is an example.

    This is the actual path to an image I uploaded http://clubsdotcom.com/wp-content/blogs.dir/1/files/2008/06/law-ball-015a21-150x150.jpg

    This is the wordpress editor url http://clubsdotcom.com/files/2008/06/law-ball-015a21-150x150.jpg

    This is my actual .htaccess
    '
    RewriteEngine On
    RewriteBase /

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

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ /$1/ [R=301,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]

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>
    '

    Wordpress MU has been installed on the main directory, I am using MU Version 1.5, All the plugins has been turned off and server is Running Apache with cpanel.

    Please I need all the help i can get.

    Thanks,
    Levi

  2. levi.putna
    Member
    Posted 15 years ago #

    Is it possible that the problem could be with the wp-content/blogs.php file? it seems that the header is not being sent correctly.

  3. levi.putna
    Member
    Posted 15 years ago #

    I relay need help with this, the problem is with the blogs.php. I don't know much about how it is working. it seems that the header is not loading.

    Is there anyone that can give me a hand with this? What information do you need to know?

    Thanks,
    Levi

About this Topic

  • Started 15 years ago by levi.putna
  • Latest reply from levi.putna