When uploading a document to a web service using the HTTP File Upload Smart Service, the document appears corrupt or disabled when opened by reader applications. Example corrupt document types include PNG or DOCX files.
The following is an example of the error received when attempting to open the document with a reader application:
The HTTP File Upload Smart Service includes redundant metadata headers in the content of the file. The following is an example of the extra headers included in a corrupt PNG file when viewing the file content in a text editor:
--atqw2dsfasdfsdSpiy76wsdafdsaf8cxdContent-Disposition: form-data; name="file"; filename="filename.png"Content-Type: image/pngContent-Transfer-Encoding: binary‰PNG<File Contents>‰PNG--atqw2dsfasdfsdSpiy76wsdafdsaf8cxd
This issue has been reported to the Appian Product Team. The reference number for this issue is AN-100114.
If the application experiencing this issue is SharePoint, a workaround is to use the Office 365 Integration Shared Component for file uploads.
This article applies to all versions of Appian.
Last Reviewed: April 2018
© 2020 Appian. All rights reserved.