> Basically, I do not want to upload a file if the user did
> not select an image on the form page and was just trying
> to update some text instead. So, How do I check for the
> existence of an image before file upload.

I don't think you can effectively do this before the file is actually
uploaded. By the time the CFFILE tag is run, the file has already been
uploaded. However, at that time, you can filter by MIME types within the
CFFILE tag and you can use the CFFILE scope to see what exactly was
uploaded.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to