Dropzone Accepted Files Issue
14,037
Solution 1
try this...
acceptedFiles: ".pdf"
Solution 2
try this:
maxFiles: 5,
maxFilesize: 20,
acceptedFiles: "image/*,application/pdf,.doc,.docx,.xls,.xlsx,.csv,.tsv,.ppt,.pptx,.pages,.odt,.rtf",
Author by
svicino
Updated on June 04, 2022Comments
-
svicino about 2 years
I have set Dropzone to only allow PDfs
acceptedFiles: "application/pdf"
However whenever I upload a PDF it throws an error. In the response it is stating that the file I tried uploading was an unkown file type.
type: "unknown/data"
I am not sure how to handle this or fix it. I have tried multiple PDF files from all different sources.