KB-1564 Corrupt files when using the HTTP File Upload Smart Service


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:

Content-Disposition: form-data; name="file"; filename="filename.png"
Content-Type: image/png
Content-Transfer-Encoding: binary

<File Contents>

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.

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: April 2018