You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to upload multiple file as I wrote here (#1421 (comment)), from what I read on internet (aspnet/Mvc#7719), IEnumerable doesnt work when you want to upload multiple files, to make it work, you need to use IFormCollection.
This is my DTO:
public class SampleDetailsDto
{
public Guid Id{ get; set; }
public string Text { get; set; }
public IFormCollection Images { get; set; }
}
RicoSuter
changed the title
IFormCollection is considered as KeyValuePairOfStringAndStringValues
API Explorer: IFormCollection is considered as KeyValuePairOfStringAndStringValues
Oct 3, 2018
Hi,
I would like to upload multiple file as I wrote here (#1421 (comment)), from what I read on internet (aspnet/Mvc#7719), IEnumerable doesnt work when you want to upload multiple files, to make it work, you need to use IFormCollection.
This is my DTO:
Controller:
Class generated by NSWAG:
Maybe there is a reason I ignore? But I think the best way to "translate" it from C# to Typescript could be FileList or File[], what do you think?
The text was updated successfully, but these errors were encountered: