Revert "removed pop for indexs"

This reverts commit 1687a01d7a.
This commit is contained in:
Abhinav-grd 2021-05-28 12:32:02 +05:30
parent 0ebe8b2527
commit 51c792e94f

View file

@ -489,14 +489,14 @@ class UploadService {
uploadPartCount
);
} else {
const fileUploadURL = uploadURLs[0];
const fileUploadURL = uploadURLs.pop();
fileObjectKey = await this.putFile(
fileUploadURL,
file.file.encryptedData,
file.filename
);
}
const thumbnailUploadURL = uploadURLs[1];
const thumbnailUploadURL = uploadURLs.pop();
thumbnailObjectKey = await this.putFile(
thumbnailUploadURL,
file.thumbnail.encryptedData as Uint8Array,