Skip to main content

HTTP Server: File response

Respond to a call made from a web endpoint with a file as response.

Input

BufferREQUIRED

File you want to send from endpoint to your client.

ResponderREQUIRED

From which endpoint you want to respond with the given file.

Parameters

Filename

Which name you want to give to your file.

Response

Body contains the file, filename is put in Content-Disposition header

Download using Curl:
curl https://api.zparse.io/workflow/e/f/xxx/yyy  -H 'Authorization: {ACCESS_KEY}' \
-H 'X-ZPARSE-IO-ATTR: {CUSTOM_ATTR}' \
-H 'X-ZPARSE-IO-AUTH: {CUSTOM_AUTH}' \
-XPOST -F "file=@/path/to/your/file.ext" > parsed.json