/**
* Set the text of the file page, to be created on file upload.
+ *
* @param {string} text
*/
UP.setText = function ( text ) {
/**
* Set the filename, to be finalized on upload.
+ *
* @param {string} filename
*/
UP.setFilename = function ( filename ) {
/**
* Set the file to be uploaded.
+ *
* @param {HTMLInputElement|File} file
*/
UP.setFile = function ( file ) {
/**
* Set whether the file should be watchlisted after upload.
+ *
* @param {boolean} watchlist
*/
UP.setWatchlist = function ( watchlist ) {
/**
* Set the edit comment for the upload.
+ *
* @param {string} comment
*/
UP.setComment = function ( comment ) {
/**
* Get the text of the file page, to be created on file upload.
+ *
* @return {string}
*/
UP.getText = function () {
/**
* Get the filename, to be finalized on upload.
+ *
* @return {string}
*/
UP.getFilename = function () {
/**
* Get the file being uploaded.
+ *
* @return {HTMLInputElement|File}
*/
UP.getFile = function () {
/**
* Get the boolean for whether the file will be watchlisted after upload.
+ *
* @return {boolean}
*/
UP.getWatchlist = function () {
/**
* Get the current value of the edit comment for the upload.
+ *
* @return {string}
*/
UP.getComment = function () {
/**
* Gets the base filename from a path name.
+ *
* @param {string} path
* @return {string}
*/
/**
* Gets the state of the upload.
+ *
* @return {mw.Upload.State}
*/
UP.getState = function () {
* Get the imageinfo object for the finished upload.
* Only available once the upload is finished! Don't try to get it
* beforehand.
+ *
* @return {Object|undefined}
*/
UP.getImageInfo = function () {
/**
* Upload the file directly.
+ *
* @return {jQuery.Promise}
*/
UP.upload = function () {
/**
* Upload the file to the stash to be completed later.
+ *
* @return {jQuery.Promise}
*/
UP.uploadToStash = function () {
/**
* Finish a stash upload.
+ *
* @return {jQuery.Promise}
*/
UP.finishStashUpload = function () {