Hi,
Is there anyway to bypass a blank file upload field from a form i.e. if a user does not specify a a file to upload then the corresponding action page just bypases it.
Ive tried puttingan if statement around the upload section on the action page but no joy.
Heres the snippet:
<CFIF #Form.ImageSection1# IS "">
No Image submitted
<CFELSE>
<CFFILE ACTION="Upload"
FILEFIELD="ImageSection1"
DESTINATION="c:\webshare\NAMECONFLICT="Overwrite">
<IMG SRC= "../Project1/Users/#Client.UserName#/#cffile.serverFile#">
</cfif>
</cfoutput>
Thanks for the help in advance
Sam
Is there anyway to bypass a blank file upload field from a form i.e. if a user does not specify a a file to upload then the corresponding action page just bypases it.
Ive tried puttingan if statement around the upload section on the action page but no joy.
Heres the snippet:
<CFIF #Form.ImageSection1# IS "">
No Image submitted
<CFELSE>
<CFFILE ACTION="Upload"
FILEFIELD="ImageSection1"
DESTINATION="c:\webshare\NAMECONFLICT="Overwrite">
<IMG SRC= "../Project1/Users/#Client.UserName#/#cffile.serverFile#">
</cfif>
</cfoutput>
Thanks for the help in advance
Sam