feat(server): in upload folder, split the files into folders based on the first four of the files uuid (#6175)

This commit is contained in:
Zack Pollard 2024-01-04 20:45:16 +00:00 committed by GitHub
parent 2aaf941dda
commit 4cf1e553d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 24 additions and 13 deletions

View file

@ -1,10 +1,12 @@
export const fileStub = {
livePhotoStill: Object.freeze({
uuid: 'random-uuid',
originalPath: 'fake_path/asset_1.jpeg',
checksum: Buffer.from('file hash', 'utf8'),
originalName: 'asset_1.jpeg',
}),
livePhotoMotion: Object.freeze({
uuid: 'random-uuid',
originalPath: 'fake_path/asset_1.mp4',
checksum: Buffer.from('live photo file hash', 'utf8'),
originalName: 'asset_1.mp4',