WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Media Upload 'http error' (5 posts)

  1. mjoanisse
    Member
    Posted 4 years ago #

    Hi,
    i've recently uploaded my 'beta' website from my local copy to a server sub-domain.

    beta.newsite.com

    This area is also password protected using .htaccess + .htpasswd (if worth mentioning)
    --
    From my local copy, I've had no issues with uploading media - now on server, I cannot upload from either flash or browser uploader.

    The error i get - HTTP error.

    Any solutions / suggestions as to what i can do to help resolve issue?

    I've already tried the following ..
    removed 'uploads' directory, and re-created new one.
    set permissions of 'uploads' directory and all sub-recursive to 777.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

  3. mjoanisse
    Member
    Posted 4 years ago #

    Thank you esmi, I appreciate your help.

    I've concluced the following..
    The issue(s) around the media uploader we're in fact, caused by the password protected area (I disabled the following in .htaccess, and it's now working again)

    AuthName "Restricted Area"
    AuthType Basic
    AuthUserFile /root/path/to/my/website/.htpasswd
    AuthGroupFile /dev/null
    require valid-user

    Now, that being said.. It's nice to know that problem has been pin-pointed; however, it does leave my 'beta' area unprotected.. which is not ideal.

    Any solutions as to how i can get around this?

  4. mjoanisse
    Member
    Posted 4 years ago #

    Hi all, here is a logical solution to my problem(s) described above.

    To summarize when / if this relates to your issue(s), here are is a brief summary -

    • wordpress ver. 3.0
    • installed on subdomain
    • authentication / user + pswrd prompt (.htaccess, .htpasswd) required

    problem?

    when trying to upload, the error - HTTP error. is returned, with unsuccessful file upload.

    solution?

    add the following to the very top of your .htaccess file, (should resolve issues around uploading media)

    # Exclude the file upload and WP CRON scripts from authentication
    <FilesMatch "(async-upload\.php|wp-cron\.php|xmlrpc\.php)$">
        Satisfy Any
        Order allow,deny
        Allow from all
        Deny from none
    </FilesMatch>

    For more information:
    http://codex.wordpress.org/User:Hakre/Htaccess_Auth_Excludes

  5. greenmagnate
    Member
    Posted 3 years ago #

    Thanks.
    By the way I tried the above mentioned technique, adding the code to my .htaccess but didn't work. Than I tried the plugin 'Image Upload HTTP Error Fix' ...not successful.

    Finally i tried the plug-in 'flexupload'... Bang it fixed the problem right away and still working.

Topic Closed

This topic has been closed to new replies.

About this Topic