Howard Owens wrote:
> I know I can get all kinds of information about a file being uploaded after
> its run through CFFILE action=upload, but I'm trying to figure out how to
> identify the file type BEFORE CFFILE has run.

Technically speaking, the file has already been uploaded.  Perhaps you 
could try inspecting some of the CGI scopes or the HTTP POST headers... 
those might give you clues on the uploaded filename and/or mimetype 
before you use cffile.

But cffile just processes things.  By the time your CFML starts 
processing, the file has already been uploaded... so you might as well 
just use cffile to handle the file in a temp directory, THEN Do your 
cfswitch condition.

Rick


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:245884
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to