Solved

cfhttp upload file

Posted on 2010-08-12
6
531 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
Automating Terraform w Jenkins & AWS CodeCommit

How to configure Jenkins and CodeCommit to allow users to easily create and destroy infrastructure using Terraform code.

 
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

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

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

PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

635 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