Closed lukewilliamboswell closed 1 month ago
Thanks @lukewilliamboswell :) Can you add a minimal example and expect script to test it?
Thanks @lukewilliamboswell :) Can you add a minimal example and expect script to test it?
No problem, can do.
@Anton-4 I've added an example that uses this.
I'm having trouble writing the expect script to drive this. Would you be able to help me with this?
curl 'http://localhost:8000/' \
-H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundarykIHm2BDPibpfMOPG' \
--data-raw $'------WebKitFormBoundarykIHm2BDPibpfMOPG\r\nContent-Disposition: form-data; name="fileToUpload"; filename="roc-logo-small.png"\r\nContent-Type: image/png\r\n\r\n\r\n------WebKitFormBoundarykIHm2BDPibpfMOPG\r\nContent-Disposition: form-data; name="submit"\r\n\r\nUpload .png Image\r\n------WebKitFormBoundarykIHm2BDPibpfMOPG--\r\n'
Would you be able to help me with this?
Sure :)
@Anton-4 I've removed Base64 from the platform. I realised we only need it in the example, so I just import it there.
Adds support for multipart/form-data parsing as described in IETF RFC 7578 Returning Values from Forms: multipart/form-data
demo
This demo shows uploading a
.csv
, parse themultipart/form-data
request body, saves the file to a temporary location and opens it.