helloflask / helloflask/flask-dropzone

Is there a way to upload files without a file extension suffix to Flask-Dropzone?

Open
#60 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
246
Forks
66
PR merge metrics
No merged PRs in 30d

Description

I'm trying to use Flask-Dropzone as part of a web-app to upload files for processing. These files typically don't have a file extension due to a quirk of the export process that generates these files.

I've consulted both the Flask-Dropzone docs and the Dropzone.js docs and both seem to imply that if `DROPZONE_ALLOWED_FILE_CUSTOM = False` then every upload of all file types should be accepted. However, when navigating the file upload window, the filter defaults to "All Supported Types" and seems to only accept images. I can toggle this to "All Files" but when trying to upload anything else the dropzone gives the default error message about the file not being allowed.

I am able to set custom allowed file types such as .pdf's, .xlsx, etc. However this isn't useful as the files in question doesn't have a declared file type extension.

This can be recreated using the "multiple-dropzones" example and trying to upload any non-image file when the `DROPZONE_ALLOWED_FILE_TYPE` config is deleted.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.