Skip to content

Commit

Permalink
Provide the filename when uploading a mod logo
Browse files Browse the repository at this point in the history
The API needs the filename to verify that the file is an image.
  • Loading branch information
nickelc committed Nov 7, 2022
1 parent 628c7bf commit fee0d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modio/Models/Request/NewModMedia.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ internal HttpContent ToContent()
var form = new MultipartFormDataContent();
if (Logo is FileInfo logo)
{
form.Add(logo.ToContent(), "logo");
form.Add(logo.ToContent(), "logo", Logo.Name);
}
if (ImagesZip is FileInfo imagesZip)
{
Expand Down

0 comments on commit fee0d13

Please sign in to comment.