oh nice one, thanks.

Stefan


On 27 Feb 2009, at 14:54, rex wrote:

>
> read the file with cffile then hash() that cffile variable, like so
>
> <cffile action="read" file="#fileYouWantToHash#" variable="xFile" />
> <cfoutput>#hash(xFile)# should be equal to
> #md5_of_fileYouWantToHash#</cfoutput>
>
> Stefan Richter wrote:
>> I've used that for passwords, but since it takes a string as input I
>> am unsure how to use that to verify a binary file.
>>
>> Cheers
>>
>> Stefan
>>
>>
>>
>> On 27 Feb 2009, at 14:19, James Holmes wrote:
>>
>>> Have you tried the hash() function?
>>>
>>> mxAjax / CFAjax docs and other useful articles:
>>> http://www.bifrost.com.au/blog/
>>>
>>>
>>> 2009/2/27 Stefan Richter <[email protected]>:
>>>> This should be an easy one: how can I check the MD5 hash of an
>>>> uploaded file in Coldfusion?
>>>>
>>>> Use case: Flex app uploads a file and CF converts it, but if the  
>>>> same
>>>> file already exists on the server I want to discard the conversion
>>>> process and return the already converted file from disk. Has  
>>>> someone
>>>> got a code snipped for the MD5 hash check? I've never done that
>>>> before.
>>>
>>
>>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5805
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to