What should the type of the primary file be for /documents/api/1.2/files/data request?
Summary
What should the type of the primary file be for /documents/api/1.2/files/data request?Content
Hi All,
We are trying to make a ajax POST call to /documents/api/1.2/files/data rest end point.
Here what should be the input for the primaryFile parameter.
Tried setting the primaryFile to File, Blob but nothing worked.
var file = new File([image], 'myImage', {type: image/png}); // Here image is the response from a GET call whose return type is a arraybuffer. Tried blob as well.
The same call via servlet works fine but via ajax call in my javascript it fails.
1