new Upload()
This model represents an uploading file. The properties are read-only.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
cid |
string | The cid | |
name |
string | The name of the uploaded file | |
node |
module:store/TreeNode~TreeNode | The destination tree node | |
percent |
int | The percent | |
loaded |
int | The loaded size | |
size |
int | The total size of the upload | |
previewSrc |
string |
<optional> |
The src for the preview image |
deny |
React.Element | string |
<optional> |
Deny message |
readableLoaded |
int | The loaded size in human readable format | |
readableSize |
int | The total size of the upload in human readable format |
Methods
setter(callback)
Update this upload attributes.
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | The callback with one argument (node draft) |