flask-dropzone icon indicating copy to clipboard operation
flask-dropzone copied to clipboard

Flask Dropzone Custom Options Seems To Override Everything

Open s4Dt0y opened this issue 2 months ago • 0 comments

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?

s4Dt0y avatar Apr 24 '24 06:04 s4Dt0y