Module: hooks/uploader

Methods

(inner) afterUpload()

After upload complete do some required actions.

(inner) cancelUpload()

Cancel all the uploads.

(inner) fixAddFileToSkipHiddenFiles()

Avoid adding hidden files (why not using `FileAdded`? So we can avoid the security risk notice)
See:
  • ttps://github.com/WordPress/WordPress/blob/e8c035f25d7ad99e0e95e2a197c80481a9f9afa4/wp-includes/js/plupload/plupload.js#L1927

(inner) getNodeId() → {object}

Get the current selected node id.
Returns:
Type
object

(inner) hideMessage()

Hide the uploading message.

(inner) showMessage(up)

Show the uploading message.
Parameters:
Name Type Description
up object The current plupload instance

(inner) togglePlacement()

Toggle the placement of the unique uploader message.