The set of core options.
@default null
Specify the endpoint url to upload to.
@default 'file'
Specify the instance name.
@default null
Specify the accepted file / mime types for file select.
For example 'audio/*'
, 'image/*'
, etc.
@default {}
Add any additional body parameters to the upload post request.
@default null
Set an element id to use as a drop area for the dropzone.
@default null
The callback event when files are selected.
@default null
The callback event when file upload process begins.
@default null
The callback event when files upload process is complete.
@default null
The callback for each individual file when added to the queue.
@default null
The callback for each individual file when upload starts.
@default null
The callback for each individual file when upload sends all it's data.
@default null
The callback for each individual file when upload is successfully complete.
@default null
The callback for each individual file when upload responds with an error.
@default null
The callback for each individual file when full upload life cycle completes with either a success or an error response.
@default true
Set whether upload should start automatically or not once files are selected.
@default ['jpeg', 'jpg', 'png', 'gif']
Set the accepted file extensions allowed for upload to check on the front end before uploading.
@default 1024 * 1024 * 2
Set the maximum allowed file size for upload to check on the front end before uploading.
@default false
Select file upload mode to allow multiple uploads or not.
@default 4
When multiple
is set to true set the maximum number of files that can be selected at a time.
@default 2
When multiple
is set to true set the maximum number of files that can be uploaded at a time.
@default 'Max of {max} files can be selected at a time.'
Set the front end error message for max files selected.
@default 'Max of {max} mb per file.'
Set the front end error message for max file size.
@default 'File must be one of {extensions}.'
Set the front end error message for invalid file extension.
@default __parseErrors
Default error parsing function to use when receiving a file upload error response.
@default __http
Default http function to use when making upload post request.
A set of drivers including
vue-resource
andaxios
is available out of the box.