Provide option to force /addItem
request to use form-data
content type
#1122
Labels
/addItem
request to use form-data
content type
#1122
Describe the problem
In the last step of creating a Survey123 report, we utilize
/addItem
to add the generated report file (.docx or .pdf) as an item. Since the report file already exists in S3 bucket, we usedataUrl
property and send the request inx-www-form-urlencoded
type to let portal download the file instead of uploading a binary file inform-data
type. This works for most cases.However, it turns out that some user's web application firewall rejects the
/addItem
request if the request is send inx-www-form-urlencoded
type AND there are any HTML contents (e.g.<a>
tag in item'sdescription
property) in the request.Describe the proposed solution
Provide an option to send the
/addItem
request, even all POST requests, asform-data
content type even no binary file in the request.Alternatives considered
No response
Additional Information
Similar to #499
The text was updated successfully, but these errors were encountered: