• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

106

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
Resources
Documentation