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

Symptoms

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:

Cause

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:

--atqw2dsfasdfsdSpiy76wsdafdsaf8cxd
Content-Disposition: form-data; name="file"; filename="filename.png"
Content-Type: image/png
Content-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.

Action

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

Related
Recommended