I use the tag cffileto upload my file and save it with a new name. My problem is that the file can be in several different formats, and I do not know how to determine the file extension. I am using the following code:
<cfset ui = createUUID()>
<cffile
action="upload"
accept="video/x-flv, video/mp4, video/x-msvideo"
destination="e:\www2\uploads\#ui#.#cffile.ServerFileExt#"
nameconflict="makeunique"
filefield="form.file"
>
This tells me that cffile is undefined.
source
share