Repository navigation
How can I access the entire request body of a multipart form in the pre-request script? #9182
Replies: 1 comment 9 replies
|
Hi @aberamseyer, Since you're looking to calculate an HMAC against the exact payload sent to the server, you would need access to the serialized multipart body, including the boundary, part headers, and file contents. This serialized payload isn't currently available to the pre-request script. Using If you have any suggestions on how you'd expect this to work in the pre-request script, or what form of access would be most useful for your HMAC use case, we'd be happy to hear your thoughts and share them with the team. |
Uh oh!
There was an error while loading. Please reload this page.
prints the following to the console:
[{"uid":"c460da555edc2bea44894","name":"filea","value":["/Users/abe/Downloads/R_transactions_2026_8_14-2026_8_17.csv"],"contentType":"text/csv; charset=utf-8","type":"file","enabled":true,"description":""}]the correct data is being sent by bruno to the server, but I'm unable to calculate an hmac on the request body when uploading files without access to the full raw formdata in my pre-request script.
All reactions