> I did some further testing and it appears that CFMX, for the most
> part, is determining the MIME-type from the file extension, since I am
> able to add .pdf to any file type to get it past the application/pdf
> mime type restriction.

I think CF uses the mime-type reported by the browser, but I am not 100% 
sure.

A safer solution to detect the mime-type is something like this:
http://www.cflib.org/udf.cfm?ID=1229

Of course, that's only after the file is already on the server, so I am not 
sure if it fits your need.

----------------------------
Massimo Foti
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com
----------------------------


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234299
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to