Hey Folks,

I need to verify the mime type of some uploaded image files. Specifically I
need to determine if the files are plain jpg's or progressive jpg's.
Unfortunatley I am finding that the same mime type is returned for both file
types 'image/jpeg' whereas I would expect 'image/pjpeg' for the progressive
files.

I've been using the following method from cflib to get the file mime type:

<cfreturn getPageContext().getServletContext().getMimeType(
arguments.filePath)>

Is there any better way? I know that cf seems to be able to identify the
difference between mime type jpg and pjpg when using <cffile action="upload"
.... access="image/jpg"> because it handily rejects image/pjpegs...so I don't
really understand why the above method seems to return the same 'image/jpeg'
mime type for both file types.

Thanks for any brilliant insights,

Clark


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230075
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