fix minor issues
This commit is contained in:
parent
7b45aee757
commit
10be89e72c
|
@ -64,9 +64,9 @@ export interface ProgressUpdater {
|
|||
}
|
||||
|
||||
export interface UploadAsset {
|
||||
isLivePhoto: boolean;
|
||||
file: File;
|
||||
livePhotoAssets: LivePhotoAssets;
|
||||
isLivePhoto?: boolean;
|
||||
file?: File;
|
||||
livePhotoAssets?: LivePhotoAssets;
|
||||
}
|
||||
export interface LivePhotoAssets {
|
||||
image: globalThis.File;
|
||||
|
|
|
@ -91,7 +91,7 @@ export function segregateFiles(
|
|||
livePhotoFiles.push({
|
||||
collectionID: collectionID,
|
||||
isLivePhoto: true,
|
||||
livePhotoAsset: { image: imageFile, video: videoFile },
|
||||
livePhotoAssets: { image: imageFile, video: videoFile },
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ export function addKeysToFilesToBeUploaded(files: FileWithCollection[]) {
|
|||
function getFileToBeUploadedKey(fileWithCollection: FileWithCollection) {
|
||||
const fileName = splitFilenameAndExtension(
|
||||
fileWithCollection.isLivePhoto
|
||||
? fileWithCollection.livePhotoAsset[0].name + '-livePhoto'
|
||||
? fileWithCollection.livePhotoAssets[0].name + '-livePhoto'
|
||||
: fileWithCollection.file.name
|
||||
)[0];
|
||||
return fileName;
|
||||
|
|
Loading…
Reference in a new issue