2010-11-08 46 views

回答

6
<form enctype="multipart/form-data" method="post"> 
    <input name="file" type="file"> 
    <input type="submit"> 
</form> 

<cfif structKeyExists(FORM, "file") AND len(FORM.file)> 
     You have chosen a file to upload to the server. 
<cfelse> 
     You have NOT chosen a file to upload to the server. 
</cfif>