How to handle request payloads larger than 5MB
Learn how to use the HTTP File Trigger to process payloads exceeding 5MB in your pipeline.
Last updated
Was this helpful?
Learn how to use the HTTP File Trigger to process payloads exceeding 5MB in your pipeline.
Last updated
Was this helpful?
Both and triggers have a payload limit of 5MB. If this limit is reached, the Platform returns the HTTP status "413" with the following message:
Below you can find out more about an alternative method for handling requests that exceed the payload limit.
You can use the to process payloads larger than 5MB by sending the data as a file.
Specify the appropriate content type for your file under Body Upload and Response Content-Types. In this example, the value is application/json
, but it can also be other formats, such as application/pdf
or application/jpeg
.
After receiving the payload with the , you can access the Monitor page to see the . Note that the payload is received as a file and not in the body key. In this context, the body key is empty.
Once you have obtained the desired payload, you need to prepare the pipeline's response. You can return either a .json
file or a JSON object.
To generate a file, use the connector:
Alternatively, you can use a connector to structure and provide the final response, as shown in the following example: