new Upload()
- Source:
Methods
-
addNewFileSelectedHandler(el)
-
Adds a handler for the selection of new files.
Parameters:
Name Type Description el
jQuery - Source:
-
addStyles(el)
-
Adds the new markup to the input element.
Parameters:
Name Type Description el
jQuery - Source:
-
getMarkup(el) → {String}
-
Computes the markup to style an upload element.
Parameters:
Name Type Description el
jQuery - Source:
Returns:
The markup as HTML
- Type
- String
-
getStyledUploadSelector(el) → {String}
-
Gets the selector of the styled upload for the specified element.
Parameters:
Name Type Description el
type - Source:
Returns:
- Type
- String
-
handleFilePreselected(el)
-
Handles the displaying of files that were already selected before styling.
Parameters:
Name Type Description el
jQuery - Source:
-
hideOriginalInput(el)
-
Hides the old input element so the user doesn't notice it anymore.
Parameters:
Name Type Description el
jQuery The old input element to hide.
- Source:
-
showFileDialog(el)
-
Shows the file select dialog to the user.
Parameters:
Name Type Description el
jQuery - Source:
-
showFilename(el)
-
Shows the filename of the current selected file in the specified element.
Parameters:
Name Type Description el
jQuery - Source:
-
style(el)
-
Styles a fileupload input in the manner of bootstrap 3.
Parameters:
Name Type Description el
String | jQuery The element(s) to style
- Source:
-
validate(el)
-
Helper function that validates an input[type="file"] element.
Parameters:
Name Type Description el
jQuery A fileupload element or a selector that's pointing to one
- Source: