upaded logic to get correct number of uploadUrls
This commit is contained in:
parent
b1036a911e
commit
25317df0e7
|
@ -157,7 +157,7 @@ class UploadService {
|
||||||
encryptedFile.fileKey
|
encryptedFile.fileKey
|
||||||
);
|
);
|
||||||
await this.uploadFile(uploadFile, token);
|
await this.uploadFile(uploadFile, token);
|
||||||
|
this.filesCompleted++;
|
||||||
this.changeProgressBarProps();
|
this.changeProgressBarProps();
|
||||||
|
|
||||||
if (this.filesToBeUploaded.length > 0) {
|
if (this.filesToBeUploaded.length > 0) {
|
||||||
|
@ -181,7 +181,6 @@ class UploadService {
|
||||||
total: this.totalFileCount,
|
total: this.totalFileCount,
|
||||||
});
|
});
|
||||||
setPercentComplete(this.filesCompleted * this.perFileProgress);
|
setPercentComplete(this.filesCompleted * this.perFileProgress);
|
||||||
this.filesCompleted++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private async readFile(recievedFile: File) {
|
private async readFile(recievedFile: File) {
|
||||||
|
@ -498,7 +497,7 @@ class UploadService {
|
||||||
{
|
{
|
||||||
count: Math.min(
|
count: Math.min(
|
||||||
50,
|
50,
|
||||||
(this.filesToBeUploaded.length + 1) * 2
|
(this.totalFileCount - this.filesCompleted) * 2
|
||||||
).toString(),
|
).toString(),
|
||||||
},
|
},
|
||||||
{ 'X-Auth-Token': token }
|
{ 'X-Auth-Token': token }
|
||||||
|
|
Loading…
Reference in a new issue