Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: binary data in a form field gets changed

$
0
0

DonPedroElBuenoI wrote:

 

That's why I installed a hex-editor to make sure this is not the case.

I scrolled back up and was duly reminded. You've done a good job at excluding the cases.

 

So, it's time for new ideas. There is always the possibility that this behaviour changed between ColdFusion 9 and 10. We could therefore look a bit more in this direction.

 

You asked earlier if there is a way to save the form field's content. What about making Coldfusion to treat it as an upload.

 

<cfif isDefined("Form.Userdata") >

 

   <cffile action = "upload"

       strict="false"

        fileField = "Userdata"

        destination = "\your-server-path\uploadFile.ext" <!---Ext is a place holder for file extension--->

        accept = "binary/octet-stream" <!--- Even better, use MIME type for the file extension--->

        nameConflict = "MakeUnique">

</cfif>

 

Second test. For the purposes of elimination I would temporarily install a test version of ColdFusion 10 on SunOS, and see whether the problem occurs there. If it does, then we have enough information to report a ColdFusion 10 bug.


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>