Decode file content

New Here ,
Apr 21, 2020 Apr 21, 2020

Copy link to clipboard

Copied

hi guys, im working on a project which send a file to client side through api. i use the PUT method to send the file but getting 400 bad request. after checking the log, found that all my file content has been endoded. but when i download the file, its content still look ok.
may i know how to send the file and make sure the file content is decoded? Below is part of my code.

<cfhttp url="#requestUrl#" method="PUT" result="res" throwonerror="yes">
<cfhttpparam name="Authorization" type="header" value="Basic #token#">
<cfhttpparam name="Content-Type" type="header" value="multipart/form-data">
<cfhttpparam type="file" name="document" file="#filename#" >
</cfhttp>

Views

50

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation