Skip to content

Flask Dropzone Custom Options Seems To Override Everything #67

Description

@lycheeje11y

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions