abort

Fired when an upload operation is aborted by the user.

The event object receives the following additional properties:

  • files - a list of File objects in the current selection operation. Each file contains:
    • name - the name of the file
    • size - the size of the file in bytes
    • type - the file's MIME type
  • listItem - the <LI> element displaying the item
<input type="file" name="files" id="files" />

<script type="text/javascript">
    jQuery(function ($) {
        $('#files').shieldUpload({
            events: {
                abort: function(e) {
                    console.log("Upload aborted");
                }
            }
        });
    });
</script>