I’m trying to upload a file to an external API, which requires me to upload binary data.
I assumed I could use the FIleData field of my document, but the response I get from the API is
[BadRequest] Could not determine content type. Supported content types: [‘application/pdf’, ‘image/jpeg’, ‘image/png’, ‘image/tiff’]
I realize this isn’t technically an Appfarm issue, but I was wondering if the contents of FileData include the metadata about file type/name, or if it’s just the binary data of the file?
The documentation doesn’t seem to mention this field in great detail
Edit: After researching it seems like the binary file data shouldn’t include file name or type, so I’m back to looking for the error in other places now