mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
send file
over arguments
This commit is contained in:
parent
fe00017e9e
commit
8e4b1a12e2
@ -207,7 +207,7 @@ export default class RemoteStorage extends Core {
|
|||||||
console.error("[Uploader] Error", message)
|
console.error("[Uploader] Error", message)
|
||||||
|
|
||||||
if (typeof onError === "function") {
|
if (typeof onError === "function") {
|
||||||
onError(message)
|
onError(file, message)
|
||||||
}
|
}
|
||||||
|
|
||||||
reject(message)
|
reject(message)
|
||||||
@ -217,7 +217,7 @@ export default class RemoteStorage extends Core {
|
|||||||
//console.debug(`[Uploader] Progress: ${percentProgress}%`)
|
//console.debug(`[Uploader] Progress: ${percentProgress}%`)
|
||||||
|
|
||||||
if (typeof onProgress === "function") {
|
if (typeof onProgress === "function") {
|
||||||
onProgress(percentProgress)
|
onProgress(file, percentProgress)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -225,7 +225,7 @@ export default class RemoteStorage extends Core {
|
|||||||
console.debug("[Uploader] Finish", data)
|
console.debug("[Uploader] Finish", data)
|
||||||
|
|
||||||
if (typeof onFinish === "function") {
|
if (typeof onFinish === "function") {
|
||||||
onFinish(data)
|
onFinish(file, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
resolve(data)
|
resolve(data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user