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

Flask Dropzone Custom Options Seems To Override Everything #67

Open
s4Dt0y opened this issue Apr 24, 2024 · 0 comments
Open

Flask Dropzone Custom Options Seems To Override Everything #67

s4Dt0y opened this issue Apr 24, 2024 · 0 comments

Comments

@s4Dt0y
Copy link

s4Dt0y commented Apr 24, 2024

I do not know whether or not this a feature or a bug, but when I include the custom_options value in dropzone.config, like

{{ dropzone.config(custom_options='chunking: true, 
forceChunking: true, chunkSize: 1000000,', 
upload_action=url_for('upload.upload')) }}

Nothing works. No click to upload, no default text no nothing, even when I have this

dropzone.init_app(app)

app.config.update(
    DROPZONE_ALLOWED_FILE_TYPE='default',
    DROPZONE_IN_FORM=True,
    DROPZONE_UPLOAD_ON_CLICK=True,
)

in the right place. I'm assuming that custom options overrides everything. How do I make it only affect the options that it is directly setting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant