Possible to upload multiple files?
Open
- Dominant language
- Python
- Stars
- 3.7k
- Forks
- 336
- PR merge metrics
- No merged PRs in 30d
Description
.. to simulate an upload dialog where a user selects multiple files.
upform = forms[0]
upform['files'].value = [open("a.gz",'rb'), open("b.gz",'rb')]
This gives me:
ValueError('Value must be a file object or file path')
Contributor guide
Research direction
Start by reproducing the issue with the shown `upform['files'].value` assignment and inspect the form-upload handling it reaches. Determine how a list of file objects is validated and define done as accepting both `a.gz` and `b.gz` in one simulated multipart upload without the current ValueError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100