I want to display the submit button only after user has uploaded image. That way there will be no confusion as to which button is to be selected first and no error.
Do we know when the image is uploaded? I guess this would be afer the OPEN is releaased from the BROWSE button.
Or perhaps display the Ppload button onMouseUp. If so, how do I code it to work?
Or perhaps disable the submit button until MouseOut.
Or make the submit button background while and color white until OnMouseOut.
Can ANY of this be done with my basic code and if so, show me exactly.
<!--- A clumsy way to catch the empty FileContents when Upload button pressed before selecting file --->
<cfif FILECONTENTS eq "">
You pressed the Upload button before you selected an image to upload.
<!--- Of course, this didn't work --->
<cfset uStatus = "disabled">
<form action="upload_image.cfm" method="post" enctype="multipart/form-data">
<input style="font-size:14px" name="FileContents" type="FILE" size="45" onMouseUp="<cfset uStatus = ''>">
<input style="font-size:12px" type="submit" value="Upload Image" #uStatus#>