Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for multiple file input #281
Took a similar approach to
If no data is passed to the field, its
An alternate implementation could use one
This patch contains #280 (call process_formdata if formdata is empty) since testing this ran into that issue. Merging this after that, or just closing that, should both work in git.
referenced this pull request
Jun 22, 2016
Jul 15, 2016
Sorry for being unclear. I was thinking of validators that people have written themselves, that are used for an input with a single value (e.g. a field holding a single
Yes, that one's linked above and I'm assigned to it.
I've been getting ImportError trying this:
I can see that MultipleFileField is being imported from simple into field's init.py.
I've tried some other import statements (not expecting anything), to no avail.
I've looked in the source code for tagged release 2.1, and can see MultipleFileField in the right place.
Any idea what I'm doing wrong? I'm hoping to use this along with Flask-Uploads, closest example of this I've found is http://www.patricksoftwareblog.com/tag/flask-uploads/ (with a FileField).
Also, I've looked on Github Search, and can find no examples of anyone using this field type.
@davidism Do you have any idea when the latest version will be released?
Also for the time being I'm hunting for a workaround. I've been doing:
I tried writing a
Overall main goal is to have a single
If anyone has any ideas they would be greatly appreciated!
As a temporary fix, you can always pull this patch into your own code, the fields don't have to be in the WTForms package to work.
As to the next release, I still have not received maintainer access for the majority of the tools (PyPI, Read the Docs, and org access on GitHub). I maintain a lot of Flask-related projects and have limited time, but will start focusing on this more once I have full access so that things go smoothly.
All I can do for now is merge PRs. Any help in the form of triage of existing issues and creating pull requests, tests, and docs is very helpful towards getting a new release ready.