Solved

cfhttp upload file

Posted on 2010-08-12
6
530 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Suggested Solutions

Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

734 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