ForeignStructuredUpload

ForeignStructuredUpload

Class extending mw.ForeignStructuredUpload and allowing to get and set additional fields. See UploadDialog for the dialog.

Constructor

new ForeignStructuredUpload(target)

Source:

Create a foreign structured upload.

Parameters:
Name Type Description
target string

Extends

Methods

getDefaultUser() → {string}

Source:

Get the author as the parent method returns it.

Returns:
Type
string

getLicense() → {string}

Source:

Get the license.

Returns:
Type
string

getSource() → {string}

Source:

Get the source.

Returns:
Type
string

getUser() → {string}

Source:

Get the author.

Returns:
Type
string

setLicense(license)

Source:

Set the license.

Parameters:
Name Type Description
license string

setSource(source)

Source:

Set the source.

Parameters:
Name Type Description
source string

setUser(user)

Source:

Set the author.

Parameters:
Name Type Description
user string