File Upload Plugin
A slick UI component for uploading, viewing and downloading files.
Add a file!
#
Usage#
Configupload functions
#
handleFileUpload
is a function provided to handle media uploads from the native file input.
handleFileSelection
is a function provided to handle media uploads from a custom file input.
In both functions when the upload phase is done the updateEntity
callback should be called with an object containing the data, error (upon faliure) and index (for multiple file uploads).
privacy
#
Access control of the uploaded file: either 'public' or 'private'.
Whatever value you set here, will be stored in the data of an uploaded file.
This parameter is sent into resolveFileUrl
, and you can use it when you customize your own resolver.
modify accepted file types
#
#
lib utility functionsFile extension to file type mapper
#
A utility function that maps file extension to file type.
Usage: