mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(client) load: Upload stuck for zero byte files (#359)
This commit is contained in:
parent
21e9736c81
commit
ed14250fe2
1 changed files with 3 additions and 1 deletions
|
|
@ -120,8 +120,10 @@ module.exports.put = (url, body) => {
|
|||
if (!over)
|
||||
return;
|
||||
|
||||
if (xhr.status === OK)
|
||||
if (xhr.status === OK) {
|
||||
emitter.emit('progress', 100);
|
||||
return emitter.emit('end');
|
||||
}
|
||||
|
||||
const error = Error(xhr.responseText);
|
||||
emitter.emit('error', error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue