a fork of iceshrimp.net but a tweaked frontend to my personal liking. waow
fediverse social-media social iceshrimp fedi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[frontend] Use content-disposition: form-data for file uploads

+5 -3
+5 -3
Iceshrimp.Frontend/Core/Services/ApiClient.cs
··· 83 83 84 84 if (data is IBrowserFile file) 85 85 { 86 - request.Content = new MultipartContent 86 + request.Content = new MultipartFormDataContent 87 87 { 88 88 new StreamContent(file.OpenReadStream()) 89 89 { 90 90 Headers = 91 91 { 92 92 ContentType = new MediaTypeHeaderValue(file.ContentType), 93 - ContentDisposition = new ContentDispositionHeaderValue("attachment") 93 + ContentDisposition = new ContentDispositionHeaderValue("form-data") 94 94 { 95 - FileName = file.Name, Size = file.Size 95 + Name = "file", 96 + FileName = file.Name, 97 + Size = file.Size 96 98 } 97 99 } 98 100 }