The problem here really has nothing to do with file types. The problem is with the Mac 
IE 5 browser. When using this browser, when you post a multipart form (such as when 
uploading a file), the browser adds a carriage return to the end of every field value. 
This is quite a pain when dealing with text values [use Trim()], and gets worse with 
files. Most files don't really care if the extra 2 bytes are there, but if your app 
does a checksum when opening the file - such as Stuffit files and FileMaker Pro 
databases, those extra bytes will make the app think the file is corrupt.

Someone made a Java custom tag that deals with this very well - CFX_StripBytes. 
Basically it just strips the CR from the file. I got it in the dev exchange. if you 
can't find it, just email me and i'll send it to you. One thing to note though - if 
your files are very large then you'll need to up the Max Heap Size for the JVM in the 
CF admin settings (CF5).

 . . . .. . . . joe
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to