> 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.
> 
> J�r�me

In that case, upload to a temp directory, check the mime type & then move the file to 
the right directory. Two steps, but it's the only way to know what the mime type is.

Coldfusion seems to save the attachment to a temp file, then when you run <cffile 
actione="upload"...> it processes the temp file. This is usually quite convenient 
(excpet for the Mac IE bug, where the file will only contain a CRLF character - or 
somthething like that).

By saving to a temp file, Coldfusion can do the cool stuff like auto-rename. It's able 
to save the file, but also check if the target file already exists, then it can decide 
what to do depending on what you set.

HTH, Cameron

------------------------------------------------------------------------------
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