From 92d5c4e611d9de039d4ff40353e0d83c0546d6e2 Mon Sep 17 00:00:00 2001 From: Lilian Date: Tue, 23 Apr 2024 04:37:22 +0200 Subject: [PATCH] [frontend] FIXME temporarily raise file upload max size --- Iceshrimp.Frontend/Core/Services/ApiClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Iceshrimp.Frontend/Core/Services/ApiClient.cs b/Iceshrimp.Frontend/Core/Services/ApiClient.cs index 5c1edf1c..3a7f85eb 100644 --- a/Iceshrimp.Frontend/Core/Services/ApiClient.cs +++ b/Iceshrimp.Frontend/Core/Services/ApiClient.cs @@ -86,7 +86,7 @@ internal class ApiClient(HttpClient client) { request.Content = new MultipartFormDataContent { - new StreamContent(file.OpenReadStream()) + new StreamContent(file.OpenReadStream(maxAllowedSize: 1024 * 1024 * 50)) { Headers = {