Stop button added to cancel upload of file from either local file or URL. Canceling the local file upload was a bit harder to figure out than the URL once as it requires an abort() method on the XMLHTTPRequest object and is then handled within the error event listener on the server side. I have also set it up so that the file is deleted from the server too. This can be changed though if we dont want to do that.
Stop button added to cancel upload of file from either local file or URL. Canceling the local file upload was a bit harder to figure out than the URL once as it requires an
abort()
method on theXMLHTTPRequest
object and is then handled within the error event listener on the server side. I have also set it up so that the file is deleted from the server too. This can be changed though if we dont want to do that.