Solved

cfhttp upload file

Posted on 2010-08-12
6
521 Views
Last Modified: 2012-06-27
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
Comment
Question by:StewSupport
  • 4
  • 2
6 Comments
 
LVL 52

Expert Comment

by:_agx_
ID: 33423486
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
 

Author Comment

by:StewSupport
ID: 33423822
just 400 bad request and the error is at this line
 <cfhttpparam type="file" name="imageName2" file="c:\inetpub\photocakes\#imagename999#">
0
 
LVL 52

Expert Comment

by:_agx_
ID: 33423870
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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 52

Accepted Solution

by:
_agx_ earned 500 total points
ID: 33425529
There can be all sorts of reasons for a 400 error. So we need more information.
0
 

Author Closing Comment

by:StewSupport
ID: 33445252
sorry i can't provide the url. thanks for your help
0
 
LVL 52

Expert Comment

by:_agx_
ID: 33447473
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Database structure 4 131
Need to use URL Encode in CFDiv Tag ColdFusion, receiving error 2 57
CSS HELP 6 84
paging 3 37
PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now