在coldfusion中,如何检查他们是否选择了要上载到服务器的文件?Isdefined不会告诉你他们是否指定了一个文件。
发布于 2010-11-09 07:40:53
<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>https://stackoverflow.com/questions/4129075
复制相似问题