CFHTTP post to AWS S3 works CF9 but fails to CF10

I use the Infrastructure Canvas API to download files. After the initial call to the API, Web returns information that is used to make a POST request to the S3 Amazon Web Services service to transfer a file.

This is the application that I use to post the file on AWS S3, populated with the data returned by the API of the canvas:

<cfhttp url="#aws.upload_url#" result="result" method="post" multipart="yes">
          <cfhttpparam type="formfield" name="key" value="#aws.upload_params.key#" />
          <cfhttpparam type="formfield" name="acl" value="#aws.upload_params.acl#" />
          <cfhttpparam type="formfield" name="Filename" value="#photoName#" />
          <cfhttpparam type="formfield" name="AWSAccessKeyId" value="#aws.upload_params.AWSAccessKeyId#" />
          <cfhttpparam type="formfield" name="Policy" value="#aws.upload_params.Policy#" />
          <cfhttpparam type="formfield" name="Signature" value="#aws.upload_params.Signature#" />
          <cfhttpparam type="formfield" name="Content-Type" value="#aws.upload_params['content-type']#" />
          <cfhttpparam type="formfield" name="success_action_redirect" value="#aws.upload_params['success_action_redirect']#" />
          <cfhttpparam type="file" name="file" file="#fullPath#" />
</cfhttp>

This application runs on a ColdFusion 9 server (the response returns '200 OK'), but fails on a server ColdFusion 10 (the response returns "500 Internal Server Error"). The canvas API call works in both cases.

Ideas or suggestions appreciated.

I put the attribute redirect cfhttp on 'no' on versions CF9 and CF10. In both cases, S3 returns a 303 response with a URL code in a location on the ground that looks similar (only identifiers specific to the file in the query string are different).

My current solution is to leave the redirect attribute to "no" (no and send a third HTTP request to get the location of the redirect (which in this case includes a variety of metadata about the successful download).)

Thanks to Peter and Petro for the suggesstions.

Tags: ColdFusion

Similar Questions

Maybe you are looking for

  • Do not connect?

    I tried all the stupid solutions here.I'm not running ANY security software. I have no need, so please do not ask me to remove it or disable it.I'm not running Windows Firewall, however; Having never been, I had problems with WF and Skype. Everything

  • There the device which recharge a MacBook Air, as does the mophie for iPhone?

    There the device which recharge a MacBook Air, as does the mophie for iPhone?

  • I have a missing file

    I have a missing file and it won't let me set up a printer

  • HP 7520: Printable disappeared

    Don't know how, but all printable apps on my printer disappeared. The only (app) icon on the home screen is 'Get More'. I have the latest firmware. I checked my account online, and even there only two inserts (which I had countless others) show in 'M

  • Install Windows 8 fails: too partitions

    Hello I have a hp pavilion with windows 7 Home Premium, 64-bit g6. I also downloaded the preview release of Windows 8 (consumer) and tried to install it in dual-boot. So I tried to make a new partition on my hard drive, but since there are already 4