• Every time when I try to upload an image into the media, it gives me an error. It’s been doing this for the last 2 days.
    Error code: HTTP error. (in red)

Viewing 4 replies - 1 through 4 (of 4 total)
  • I would check your error logs in your control panel, if I’m right its doing it because your permissions or ownership of the “upload” directory is incorrect.

    Hope that helps.

    That said, it could also be one of your newly installed plugins, if you’ve installed any 2 days ago. ??

    I’m having trouble uploading a PDF other images upload ok and I’ve uploaded PDF’s in the past without a problem

    Hi,

    You guys can also try and adding a new acceptable file upload type by adding this into functions.php file;

    function my_pdf($mime_types){
        $mime_types['pdf'] = 'text/pdf';
        return $mime_types;
    }
    add_filter('upload_mimes', ' my_pdf', 1, 1);

    This might work and fix the above issue. The HTTP error from my experience usually was a bad plugin or permission issue with directories. Further down it could be possible that the HTTP (apache) server isn’t allow to upload certain file or doesn’t have permissions. It’s hard to know exactly without looking at the server logs to see what’s happening.

    That said, just brain storming here and your HTTP error could also be a result of upload cap; check your php.ini file if you can to see what the upload_size is. You can find more information here that will help with that part to increase; https://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/

    Hope any of this helps.

    Thank you,
    Artur

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can't upload Media images’ is closed to new replies.