Support » Plugin: Embed PDF Viewer » Uploading from within block doesn’t work

  • Resolved jdaviescoates


    Hi there,

    Nice little plugin, however, when I:

    1. Click add block
    2. Search for PDF and choose Embed PDF bloc
    3. Click Upload button in block and choose a PDF to upload

    I get this error:

    “Sorry, this file type is not supported here”.


    I can upload the exact same file to media library first, and then browse to it via the Media Library button in the bloc, and that works fine, but annoying to have to do another step so will try out some other PDF embed plugins to see if they just work…

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Andy Fragen


    @jdaviescoates thanks for the report. I was able to fix this in v2.0.4

    If I haven’t lost you as a user can you please let me know what you think?


    Works great, now, thanks!

    And yes, I think this is now my favourite PDF embedder plugin đŸ™‚

    PS does this plugin powered by Mozzila’s pdf.js?

    Ah, I’m guessing it perhaps doesn’t take advantage of Mozzila’s PDF.js as it doesn’t work as well on mobiles as does (which is now my favourite PDF plugin again because of that)

    Plugin Author Andy Fragen


    For mobile devices it uses the Google Viewer. For devices that allow it uses the native <object> tag.

    I was trying to make the plugin as lightweight as possible and so was trying to avoid adding external libraries to do the heavy lifting.

    Thanks again for pointing out the issue so I could get it fixed.

    Fair enough, I guess.

    On my Android mobile there was a large chunk of white space above the Google Viewer embed, and the Google Viewer embed only appeared after a refresh, not on the first load.

    I prefer plugins that do make use of Mozilla’s PDF.js because they seem to just work without issue.



    Thank you JDC and Andy for the clarity. We’re having the same problem, and I’ve tried finding the version of the block editor to ensure it’s v2.0.4, but not luck. Any advice for our noob level? Sorry and thank you!

    Plugin Author Andy Fragen


    @lukestickels what precisely is your issue? It is currently possible to use the upload button to add a PDF for the embed.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Uploading from within block doesn’t work’ is closed to new replies.