Constructor
new UploadDialog(configopt)
- Source:
 
Create an upload dialog.
Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
config | 
            
            object | 
                
                    <optional> | 
            
            
                
                
                    {}
                
                 | 
            
            
Methods
(protected) showErrors(errors)
- Source:
 
OOUI native method.
Here we use a hack to hide the second identical error message that can appear since we execute two actions, not one ("Upload and save").
Parameters:
| Name | Type | Description | 
|---|---|---|
errors | 
            
            external:OO.ui.Error | 
(protected) updateActionLabels(autosave)
- Source:
 
Update the labels of actions.
Parameters:
| Name | Type | Description | 
|---|---|---|
autosave | 
            
            boolean | Whether to save the upload when clicking the main button.  |