Compare commits

...

1 Commits

Author SHA1 Message Date
bo0tzz
78cc7daf75 fix: always set extension from provided file
The livephoto case can also happen with other files; for example, we
receive a DNG file as JPEG but then still call it .dng

Fixes #29805, partially addresses #28602
2026-07-11 18:15:39 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -296,7 +296,7 @@ class BackgroundUploadService {
fileName = p.setExtension(fileName, p.extension(asset.name));
}
final originalFileName = entity.isLivePhoto ? p.setExtension(fileName, p.extension(file.path)) : fileName;
final originalFileName = p.setExtension(fileName, p.extension(file.path));
String metadata = UploadTaskMetadata(
localAssetId: asset.id,

View File

@@ -317,7 +317,7 @@ class ForegroundUploadService {
fileName = p.setExtension(fileName, p.extension(asset.name));
}
final originalFileName = entity.isLivePhoto ? p.setExtension(fileName, p.extension(file.path)) : fileName;
final originalFileName = p.setExtension(fileName, p.extension(file.path));
final deviceId = Store.get(StoreKey.deviceId);
final fields = {