-
Notifications
You must be signed in to change notification settings - Fork 68
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
Adding custom options to support chunking upload #39
Comments
For complex scenarios, I will recommend just use Dropzone.js directly without this extension, check out this tutorial for chunking upload with Flask and Dropzone.js. If you want to support chunking upload with this extension, you can pass the related configurations with {{ dropzone.config(custom_options='chunking: true, forceChunking: true, chunkSize: 1000000,') }} Possible duplicate with #25. |
We prefer config file in python that's why I and my buddy are deciding whether or not to fork the code but we were wondering how you write a class, for instance, to add new custom options. We are looking to add classes to your repo or to fork, but we have to read all files and start testing it. we were asking if you could tell us how to do it faster, or if it's impossible? |
If you just want to store the config value in Python, maybe put it in a dict, then assemble it like this: import json
config = {'chunking': True, 'forceChunking': True, 'chunkSize': 1000000}
config_string = str(json.dumps(config )).replace('"', '')[1:-1] # pass this to custom_options |
Thank you we will do this, and get back to you |
Closing it now for inactive. Please feel free to reopen or comment. |
We are trying to implement chunking in our applications but it requires custom options for drop.zone.config.
Would you be interested in adding chunking? or point us in the right direction to improve the flask-dropzone to be more complex.
What is the limitation
The text was updated successfully, but these errors were encountered: