cancelling file upload in case of failed db transaction and vice versa...
I'm sure this is a pretty common problem. When a file is uploaded to the site, I use the CFFILE tag to upload the doc and a SQL insert query to capture the doc's metadata. How can I rollback the entire transaction if one of these operations fails?
example:
<CFFILE> ... success
<CFQUERY> ... fails
result: uploaded doc with no captured metadata
<CFQUERY> ... success
<CFFILE> ... fails
result: captured metadata but no uploaded doc
