Skip to content

Uploading a file's binary content via the CreateAndImportDocument.svc/EdmFileSet REST API endpoint (after successfully creating the document, attaching it to an object, and getting the upload URL) fails with a generic 'Error while uploading the file' / PROJECTION_IMPL_EXCEPTION, even though the request otherwise looks correct.

Answer

Set the X-IFS-Content-Disposition request header to filename=<base64-encoded-file-name> on the upload request — a missing or incorrectly formatted Content-Disposition header (specifically needing the base64-encoded filename in that exact format) is a common cause of this generic upload-failure error on the final file-upload step of the attachment flow.

← Browse Integrations and APIs questions