feat: pass filename in body on asset upload (#19138)

* chore: get upload filename from request body

* use info from request body
This commit is contained in:
Alex
2025-06-12 16:31:00 -05:00
committed by GitHub
parent 5cd186d3d4
commit 176656b5f4
5 changed files with 35 additions and 7 deletions

View File

@@ -418,7 +418,7 @@ export class AssetMediaService extends BaseService {
duration: dto.duration || null,
visibility: dto.visibility ?? AssetVisibility.TIMELINE,
livePhotoVideoId: dto.livePhotoVideoId,
originalFileName: file.originalName,
originalFileName: dto.filename || file.originalName,
sidecarPath: sidecarFile?.originalPath,
});