You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upload file automatically or manually by clicking accept button.
active
Boolean
false
When set to true will capture pasted images and upload as file.
max-file-size
Number
0
The maximum size that the file to be uploaded can have. It's expressed in bytes.
Methods
Name
Parameters
Description
selectFile
None
Open select file dialog.
abortAllTasks
None
Abort all queue items.
Events
Name
Parameters
Description
statechange
{ detail: task }
Occurs when file upload state changes, including start upload, upload progress, end upload, abort, fail to upload (ex: maximum desired file to be uploaded exceedes value of max-file-size).
Task object
{file: file,// File object selected by `<input type="file" />` https://developer.mozilla.org/en/docs/Using_files_from_web_applicationsprogress: 0,// File upload progress in %error: "",// File upload error text, empty string if no errors,sizeString: ""// File size in readable format like 512kb, 1mb, 2.5gb}