1
En coldfusion, comment vérifiez-vous s'ils choisissent un fichier à télécharger sur le serveur? Isdefined ne dira pas s'ils ont spécifié un fichier ou non.Coldfusion Form Validation: Fichier
En coldfusion, comment vérifiez-vous s'ils choisissent un fichier à télécharger sur le serveur? Isdefined ne dira pas s'ils ont spécifié un fichier ou non.Coldfusion Form Validation: Fichier
<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>