A reference to a DOM element. A string is interpreted as a CSS selector.
An event listener that takes a single event data object and should not return anything.
Possible states of an AJAX upload item. An AJAX upload can be either:
Disables the AJAX upload feature. Aborts all pending uploads, removes all finished uploads, and removes all listeners so that no new AJAX uploads are started.
This must be called with the same container that was passed to AjaxUploadManager.enable.
Registers the appropriate listeners for all AJAX enabled upload fields inside the given container. This uses event delegation, so you can add elements inside the container dynamically after calling this function.
An object with the event sources provided by the AJAX upload manager, such as when an upload begins, progresses, or was successful. You can subscribe or unsubscribe from these events.
Checks whether the AJAX feature is enabled for a given upload
element. When this returns false
, other methods such as getUpload
should not be used.
Stops the upload if any upload is any progress, or removes the uploaded file if a file was uploaded.
Removes all listeners so that no new AJAX uploads are started, keep pending and finished uploads. Useful e.g. when you want to wait until all uploads have finished, but do not want to allow new uploads to be initiated.
This must be called with the same container that was passed to AjaxUploadManager.enable.
Namespace with types and interfaces required by the AJAX upload manager.