Hi,
your 'action' input field will override the form.action property. I think we need use form.getAttribute("action") for the new code..
1. If you only modify the attribute CancelUploadMsg it's not useful , because the cancel button is rendered as an real button. and be attached as the CancelButtonID
2. If you are using UploadAttachments , it will hold the list . You can use DeleteAllAttachments to remove them after you processing them.
Regards,
Terry