diff --git a/Iceshrimp.Backend/Core/Services/DriveService.cs b/Iceshrimp.Backend/Core/Services/DriveService.cs index 12f958bf..4e7b8ae3 100644 --- a/Iceshrimp.Backend/Core/Services/DriveService.cs +++ b/Iceshrimp.Backend/Core/Services/DriveService.cs @@ -312,6 +312,12 @@ public class DriveService( throw new Exception("Uri must not be null at this stage"); } + if (original?.format.Format is { } fmt and not ImageFormat.Keep) + { + request.MimeType = fmt.MimeType; + request.Filename += $".{fmt.Extension}"; + } + file = new DriveFile { Id = IdHelpers.GenerateSnowflakeId(),