I have a form where I am allowing the users to upload multiple files. If one of the fields are blank the form will not complete the upload and I get a CF Error. How can I correct this?
Ques2:
In my upload CFFILE attribute FILEFIELD is thier a way for me to make this global and have multiple fields use one CFFILE statement.
Currently my code looks like this and it is not efficient for reuse
If any of these fields are left blank on the form it bombs.
<CFFILE ACTION="UPLOAD"
DESTINATION="C:\inetpub\NAMECONFLICT="OVERWRITE"
FILEFIELD="Staff_Image">
<CFFILE ACTION="UPLOAD"
DESTINATION="C:\inetpub\NAMECONFLICT="OVERWRITE"
FILEFIELD="Audio">
<CFFILE ACTION="UPLOAD"
DESTINATION="C:\inetpub\NAMECONFLICT="OVERWRITE"
FILEFIELD="Text">
<CFFILE ACTION="UPLOAD"
DESTINATION="C:\inetpub\NAMECONFLICT="OVERWRITE"
FILEFIELD="Image_Emp"> [sig]<p>Julius<br><a href=mailto:jweems@infotek-intl.com>jweems@infotek-intl.com</a><br>"Imagination is more important than Knowledge"[/sig]
Ques2:
In my upload CFFILE attribute FILEFIELD is thier a way for me to make this global and have multiple fields use one CFFILE statement.
Currently my code looks like this and it is not efficient for reuse
If any of these fields are left blank on the form it bombs.
<CFFILE ACTION="UPLOAD"
DESTINATION="C:\inetpub\NAMECONFLICT="OVERWRITE"
FILEFIELD="Staff_Image">
<CFFILE ACTION="UPLOAD"
DESTINATION="C:\inetpub\NAMECONFLICT="OVERWRITE"
FILEFIELD="Audio">
<CFFILE ACTION="UPLOAD"
DESTINATION="C:\inetpub\NAMECONFLICT="OVERWRITE"
FILEFIELD="Text">
<CFFILE ACTION="UPLOAD"
DESTINATION="C:\inetpub\NAMECONFLICT="OVERWRITE"
FILEFIELD="Image_Emp"> [sig]<p>Julius<br><a href=mailto:jweems@infotek-intl.com>jweems@infotek-intl.com</a><br>"Imagination is more important than Knowledge"[/sig]