Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload pdfs or other types than image #906

Open
BjoernSag opened this issue Mar 15, 2022 · 0 comments
Open

Upload pdfs or other types than image #906

BjoernSag opened this issue Mar 15, 2022 · 0 comments
Labels

Comments

@BjoernSag
Copy link

Description

We are trying to upload PDFs to using the netlify widget. But we get this error:
Screen Shot 2022-03-15 at 14 29 55

The file seems to be uploaded correctly by the response we get in the network tab, however it doesn't return any link or any way to preview/embedd it into the page.

We attempted to fix it by setting the config to: imagesOnly: false,
inputAcceptTypes: 'application/',
preferredTypes: 'application/
'

But it still gives error upon upload

Steps to reproduce

Try to upload a PDF.

Expected result

The PDF gets uploaded and we can use it in our project.

Actual result

We get an error as seen above

Environment

Node v: v16.13.1
uploadcare-widget: "3.17.0",

  • widget version:
  • node -v:
  • npm -v:
@BjoernSag BjoernSag added the bug label Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant