cfhttp upload file

if somebody upload the file, i will upload that file to my server then rename it then upload it to some other server using cfhttp.


<cfhttp.......multipart="yes" method="post">
 <cfhttpparam type="file" name="imageName2" file="c:\inetpub\photocakes\#imagename999#">
</cfhttp>

it keeps returning 400 bad request error. can you tell me why?
StewSupportAsked:
Who is Participating?
 
_agx_Commented:
There can be all sorts of reasons for a 400 error. So we need more information.
0
 
_agx_Commented:
It looks okay, assuming you've got a valid URL in there too.  Dump the response. What's the full error?

<cfdump var="#cfhttp#">
0
 
StewSupportAuthor Commented:
just 400 bad request and the error is at this line
 <cfhttpparam type="file" name="imageName2" file="c:\inetpub\photocakes\#imagename999#">
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
_agx_Commented:
If you dump the cfhttp scope there has to be more information than just an error.  What's the url? Just xxxx out the company name if needed.
0
 
StewSupportAuthor Commented:
sorry i can't provide the url. thanks for your help
0
 
_agx_Commented:
I understand. Developers can't always disclose url's (or other info). But you can always replace anything confidential/proprietary with psuedo values like "xxx" or "abcxyz.com".  It's a pretty common practice.  Often times (though not always) it's enough to help others diagnose the problem.

While I do appreciate the points :) , unfortunately I wasn't able to answer your question. So IMO, I would delete this question and have your points refunded, rather than archiving an unanswered question in the PAQ's.  If you choose to do that, I wouldn't be offended. Just use the "Request Attention" link in the 1st post, and the moderators will assist with it shortly.

Cheers.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.