From 692aa416773c99c6bfa82e7773f31a6660e5566c Mon Sep 17 00:00:00 2001 From: Loporrit <141286461+loporrit@users.noreply.github.com> Date: Thu, 5 Oct 2023 03:34:25 +0000 Subject: [PATCH] Disable munged upload --- MareSynchronos/WebAPI/Files/FileUploadManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MareSynchronos/WebAPI/Files/FileUploadManager.cs b/MareSynchronos/WebAPI/Files/FileUploadManager.cs index 171c11f..68f3cbe 100644 --- a/MareSynchronos/WebAPI/Files/FileUploadManager.cs +++ b/MareSynchronos/WebAPI/Files/FileUploadManager.cs @@ -144,12 +144,12 @@ public sealed class FileUploadManager : DisposableMediatorSubscriberBase try { - await UploadFileStream(compressedFile, fileHash, _mareConfigService.Current.UseAlternativeFileUpload, uploadToken).ConfigureAwait(false); + await UploadFileStream(compressedFile, fileHash, false, uploadToken).ConfigureAwait(false); _verifiedUploadedHashes[fileHash] = DateTime.UtcNow; } catch (Exception ex) { - if (!_mareConfigService.Current.UseAlternativeFileUpload && ex is not OperationCanceledException) + if (false && ex is not OperationCanceledException) { Logger.LogWarning(ex, "[{hash}] Error during file upload, trying alternative file upload", fileHash); await UploadFileStream(compressedFile, fileHash, munged: true, uploadToken).ConfigureAwait(false); @@ -165,6 +165,7 @@ public sealed class FileUploadManager : DisposableMediatorSubscriberBase { if (munged) { + throw new NotImplementedException(); FileDownloadManager.MungeBuffer(compressedFile.AsSpan()); }