diff --git a/Iceshrimp.Backend/Core/Services/DriveService.cs b/Iceshrimp.Backend/Core/Services/DriveService.cs index b3f6d051..2b799933 100644 --- a/Iceshrimp.Backend/Core/Services/DriveService.cs +++ b/Iceshrimp.Backend/Core/Services/DriveService.cs @@ -112,7 +112,15 @@ public class DriveService( : 0; var stream = await GetSafeStreamOrNullAsync(input, maxLength, res.Content.Headers.ContentLength); - return await StoreFile(stream, user, request, skipImageProcessing); + try + { + return await StoreFile(stream, user, request, skipImageProcessing); + } + catch (Exception e) + { + logger.LogWarning("Failed to store downloaded file from {uri}: {error}, storing as link", uri, e); + throw; + } } catch (Exception e) {