Has anyone seen this issue in Lucee ( version 126.96.36.199 – Gelert ) when attempting to upload images to a Rackspace File container. The file gets uploaded but the file is corrupt with what appears to be a headers at the start of the file. I’m not able to reproduce the issue on Adobe ColdFusion version 11.
CFHTTP call being made:
<cfhttp method="PUT" url="#rackSpaceURL#/#rackSpaceContainer#/#imageFolder#/#fileToUpload#" result="local.response"> <cfhttpparam type="header" name="X-Auth-Token" value="#local.token#"> <cfhttpparam type="header" name="Content-type" value="#local.typeOfFile#"> <cfhttpparam type="file" name="myphoto" file="#fileToUpload#"> </cfhttp>
Looking at the file contents that get uploaded ( via vim ):
Content-Disposition: form-data; name=“myphoto”; filename=“EBF023A6-CCD1-4782-BEB312564F1A5A06_main-image.jpg”^M
The last line is the beginning of the jpeg image file.
If I’m missing something obvious or if there are additional troubleshooting steps I should try, please let me know.