Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 540
  • Last Modified:

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?
0
StewSupport
Asked:
StewSupport
  • 4
  • 2
1 Solution
 
_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
 
_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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
_agx_Commented:
There can be all sorts of reasons for a 400 error. So we need more information.
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.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now