[thelist] testing for <input type="file"> with CF
matthew garrett
matthew.garrett at snet.net
Thu Jul 19 08:20:24 CDT 2001
hello all,
i'm looking for the simplest way to determine whether a <input type="file">
field is actually passing a file.
I've been doing this:
<cfif 'i need help *here*' >
<cffile action="upload" etc.>
</cfif>
with temporary success. But i need a statement that works for all cases.
should i do this instead:
<cftry>
<cffile action="upload" accept="application/pdf, or whatever" etc.>
<cfset isitthere="yes">
<cfcatch>
<cfset isitthere="no">
</cfcatch>
</cftry>
since it seems to work.
i would like to do the right thing, if there is a right thing.
thanks,
mg
More information about the thelist
mailing list