> Thanks for your reply but i nee to know the mime type or 
> extension before the <cffile action="upload"... because 
> destination folder and filename (+id from the database record 
> previously inserted) depends of that.

Well, I don't think you're going to be able to know the MIME type on the
server without first using CFFILE. You could perhaps add client-side code to
do this, or have the user select the file type using a dropdown box.

In any event, though, I don't see why you can't simply use CFFILE to accept
the uploaded file, put it somewhere on the filesystem, look at the MIME
type, figure out how you want to classify or store it, then put it where you
want with CFFILE ACTION="MOVE".

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to