Multiple files in one POST request
See original GitHub issueThe file picker option in the app doesn’t support multiple files as of now, ( correct me if I’m wrong ) … neither does it support Content-Type=multipart/form-data
… I know in a simple html form u can write something as `<input … multiple=“multiple” encoding=“multipart/form-data” … say I wanted to POST a request to that endpoint containing many files…
I’d like to see some kind of support for sending multiple ( say image files ) in a POST request preferably through the same file picker
Alternative: probably, using application/json
and sending files after converting them into base64 then writing more server side logic to parse the json and covert them back to images, that’s inconvenient, plus you can’t use variables here, as there is no present functionality that helps to simplify this
( an alternative javascript solution can exist, but I’d still prefer to use the file picker … also, the only language I know is python … ^^")
I’m pretty new to all of this stuff, …^^" … so I have limited knowledge, feel free to ask more stuff or suggest me better solutions, thank you very much for your time
Issue Analytics
- State:
- Created a year ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
As the file picker is not part of the app, but comes from Android itself or from another app, I have no control over it. The only way to achieve this reliably would be to build a custom file picker into the app, which would have its own drawbacks
This would be feasible, but requires a lot of effort to build. I’ll keep the idea in the backlog, but will not focus on it for now. I want to make some general improvements to how files are handled in the app, so maybe it fits in with that broader topic, but currently I have no timeline for that.
Unfortunately, the order of the files is given by the file picker, which is not part of the HTTP Shortcuts app but the Android OS (or possibly some other third-party app). As such, the files are uploaded in no particular order, and the actual order may be random or decided by the picker. There isn’t an easy way to fix this, short of building a fully custom file picker into the app, but that would come with drawbacks of its own.