• Wolfy Design

    (@milanche037)


    Hi,

    this issue is not directly related to your plugin (although I’m using it), but I didn’t found solution to it anywhere on the web. Hope you can be able to help somehow.

    Fact is I’m unable to upload any (large or small) PDF file through Media Library as I’m constantly getting “HTTP error” message after upload is complete. I have tried even to upload a PDF file manually through FTP, but it doesn’t show up in Media Library after upload. My guess is WordPress has some issues with PDF file formats, but I can’t figure it out myself.

    Any idea how to fix this?

    Thanks,
    Milan

    https://www.ads-software.com/plugins/enhanced-media-library/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author webbistro

    (@webbistro)

    Hi Milan,

    Sorry for the late reply.

    WordPress is perfectly able to upload PDFs. Please post a screenshot with the error and let me know what is the list of your active plugins.

    -Nadia

    Thread Starter Wolfy Design

    (@milanche037)

    Hi Nadia,

    web site is currently in development phase, but here’s the screenshot:

    https://prntscr.com/68lq7f

    In the meantime, I’ve noticed that this issue is only with new WP upload system. When I try to upload single PDF file via old upload method, file gets uploaded successfully. Problem is I really need to upload multiply PDF files because it would take ages for me to do so.

    Here’s the list of current active plugins:

    Akismet
    Better Delete Revision
    Contact Form 7
    Enhanced Media Library
    Event Booking Pro
    LayerSlider WP
    Revolution Slider
    Templatera
    WordPress Importer
    WPBakery Visual Composer
    WPML Multilingual CMS
    WPML String Translation

    Thanks!

    Plugin Author webbistro

    (@webbistro)

    Thanks Milan! Can you please try to deactivate all plugins except Enhanced Media Library and check if the problem is gone? It looks like some incompatibility issue. Also please let me know your version of WordPress and theme name.

    Thread Starter Wolfy Design

    (@milanche037)

    Tried that. Same issue.

    I’m using latest WP and Total Theme as framework.

    Plugin Author webbistro

    (@webbistro)

    OK, thanks, can you please try to activate any “default” WP theme instead of Total Theme to check if it has impact?

    Thread Starter Wolfy Design

    (@milanche037)

    I have thought of that too, but theme has nothing to do with WP uploading system. Anyway, that didn’t help either.

    Plugin Author webbistro

    (@webbistro)

    Then, it’s most likely a server issue. Also you can conduct more researches: try other browser, device, other file type, a file with less Mb

    Something like this https://revocomm.com/solving-wordpress-image-upload-http-error/ can also be helpful… as well as contacting your hosting provider.

    Thread Starter Wolfy Design

    (@milanche037)

    Before I wrote anything here, I made all the research I could possibly make. This was my last hope ?? In fact, I never bother people about some issue if I didn’t already tried to fix it myself or searched for already solved solution for that issue.

    You plugin was last one I installed and it’s tied up to media library, so I figured you could give me some useful advice. I’m trying to upload PDF’s that are less than 1Mb large, so I was trying with different sizes as well. Also with another type of files. Everything works except PDF files. That’s really strange, because uploader shouldn’t make difference in file type.

    Last thing left for me to do is contact my provider, but I’m not sure they will be much of a use.

    Thank you for your time, anyway.

    Plugin Author webbistro

    (@webbistro)

    Milan, I didn’t mean you bother me, it just looks like a server issue under the circumstances you described. In this case I can’t be really helpful, sorry.

    WordPress by default doesn’t allow PDF’s upload. The mechanism EML uses is pretty straightforward – the upload_mimes hook (https://codex.www.ads-software.com/Plugin_API/Filter_Reference/upload_mimes). You can check it for yourself without any plugin at all – .pdf application/pdf or application/x-pdf (if you haven’t tried this before).

    Try to allow uploading .exe application/x-msdownload (don’t forget to disallow it then!)

    If this doesn’t work either, then your server blocks uploading of certain mime types. In this case you should definitely contact your hosting provider.

    -Nadia

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘HTTP error when uploading PDF file’ is closed to new replies.