Status |
---|
colour | Yellow |
---|
title | 릴리즈 Release 2.2.0 이상or Above |
---|
|
This event occurs before a file is uploaded. This event can be cancelled.
...
Code Block |
---|
|
// release 2.2.0
{
editor: SynapEditor,
eventType: 'beforeUploadFile',
cancelable: true,
returnValue: null,
fileName: 'filename.zip' // Name of the file to upload.
}
// release 2.2.1 or above
{
editor: SynapEditor,
eventType: 'beforeUploadFile',
cancelable: true,
returnValue: null,
fileType: 'file', // [2.2.1] File type
fileName: 'filename.zip',
uploadCount: 0 // [2.2.1] Number of files being uploaded (the number of files to be uploaded whose upload is not completed yet)
}
// release 2.14.6 or above
{
editor: SynapEditor,
eventType: 'beforeUploadFile',
cancelable: true,
returnValue: null,
fileType: 'file',
fileName: 'filename.zip',
fileSize: 100, // [2.14.6] File size (Unit: Byte)
uploadCount: 0
} |