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 uploadPartCount
); );
} else { } else {
const fileUploadURL = uploadURLs[0]; const fileUploadURL = uploadURLs.pop();
fileObjectKey = await this.putFile( fileObjectKey = await this.putFile(
fileUploadURL, fileUploadURL,
file.file.encryptedData, file.file.encryptedData,
file.filename file.filename
); );
} }
const thumbnailUploadURL = uploadURLs[1]; const thumbnailUploadURL = uploadURLs.pop();
thumbnailObjectKey = await this.putFile( thumbnailObjectKey = await this.putFile(
thumbnailUploadURL, thumbnailUploadURL,
file.thumbnail.encryptedData as Uint8Array, file.thumbnail.encryptedData as Uint8Array,