new ValidatorFileHandler(handler, options, configs)
Parameters:
Name | Type | Description |
---|---|---|
handler |
||
options |
||
configs |
Extends
Methods
add(event, data)
- Overrides:
Parameters:
Name | Type | Description |
---|---|---|
event |
||
data |
addBuffered(fileDatas) → {*}
Parameters:
Name | Type | Description |
---|---|---|
fileDatas |
Returns:
- Type
- *
baseCheckinDone(checkinObject, serviceMethod) → {*}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
||
serviceMethod |
Returns:
- Type
- *
baseCheckinStart(checkinObject, serviceMethod) → {*}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
||
serviceMethod |
Returns:
- Type
- *
begin(fileDatas) → {Promise.<boolean>}
- Overrides:
Parameters:
Name | Type | Description |
---|---|---|
fileDatas |
Returns:
- Type
- Promise.<boolean>
bufferFileData(target, data)
Parameters:
Name | Type | Description |
---|---|---|
target |
||
data |
checkinCancel(checkinObject)
Fire and forget this request. It's just for releasing of some server side resources allocated with this drop operation. Catches all errors
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
checkinDone(checkinObject) → {*}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
Returns:
- Type
- *
checkinStart(checkinObject) → {*}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
Returns:
- Type
- *
consumeFileData() → {Array}
Returns:
- Type
- Array
doCheckin(data, oid, fmt, fn, newFn) → {*}
Parameters:
Name | Type | Description |
---|---|---|
data |
||
oid |
||
fmt |
||
fn |
||
newFn |
Returns:
- Type
- *
done(result, fileDatas) → {Object}
- Overrides:
Parameters:
Name | Type | Description |
---|---|---|
result |
||
fileDatas |
Returns:
- Type
- Object
error(error)
- Overrides:
Parameters:
Name | Type | Description |
---|---|---|
error |
moreDataExists(data) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
data |
Returns:
- Type
- boolean
oneStepCheckinDone(checkinObject) → {*}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
Returns:
- Type
- *
oneStepCheckinStart(checkinObject) → {*}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
Returns:
- Type
- *
perform(fileDatas) → {*|Promise}
Parameters:
Name | Type | Description |
---|---|---|
fileDatas |
Returns:
- Type
- * | Promise
postprocess(target, data) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
target |
||
data |
Returns:
- Type
- boolean
preprocess(target, data) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
target |
||
data |
Returns:
- Type
- boolean
progress(event, data)
Parameters:
Name | Type | Description |
---|---|---|
event |
||
data |
promptUser(userInput, uiInput, fileName) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
userInput |
||
uiInput |
||
fileName |
Returns:
- Type
- boolean
resolveCheckinStart(checkinObject, resp, serviceMethod) → {*}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
||
resp |
||
serviceMethod |
Returns:
- Type
- *
startLoader()
stopLoader()
uploadFile(checkinObject) → {Promise.<(any|never|never)>}
Parameters:
Name | Type | Description |
---|---|---|
checkinObject |
Returns:
- Type
- Promise.<(any|never|never)>
validate(fileData) → {*|boolean}
Parameters:
Name | Type | Description |
---|---|---|
fileData |
Returns:
- Type
- * | boolean
validateFileExtension(target, data) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
target |
||
data |
Returns:
- Type
- boolean
validateFileName(target, data) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
target |
||
data |
Returns:
- Type
- boolean
validateFileSize(target, data) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
target |
||
data |
Returns:
- Type
- boolean
validationError(data, target, args) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
data |
||
target |
||
args |
Returns:
- Type
- boolean