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
When using IFormCollection, it is easy to get the form keys.
But when working with the IFormFileCollection interface, there is not way to get all form names and file names (somehing like IFormCollection.Keys / IFormCollection.FileNames) or at least two properties IFormFile.FileName and IFormFile.Name.
I have found a workaround (using ContentDispositionHeaderValue like in the FormFileCollection class, but it is not very fun to use.
When using
IFormCollection, it is easy to get the form keys.But when working with the
IFormFileCollectioninterface, there is not way to get all form names and file names (somehing likeIFormCollection.Keys/IFormCollection.FileNames) or at least two propertiesIFormFile.FileNameandIFormFile.Name.I have found a workaround (using
ContentDispositionHeaderValuelike in theFormFileCollectionclass, but it is not very fun to use.