Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Feature: Provide a way to specify validation settings on MultipartFormDataStreamProvider/MultipartFileStreamProvider, like to limit file size, number of files etc. [921]

$
0
0
Currently a user cannot specify what is the maximum size of a single file that is allowed or combined size of multiple files that are uploaded or restrict the number of files that are uploaded upfront. By upfront I mean that, currently a user would do the following to read a multipart form upload request:

MultipartFormDataStreamProvider provider = await request.Content.ReadAsMultipartAsync<MultipartFormDataStreamProvider>(new MultipartFormDataStreamProvider(@"C:\UploadedFiles"));

After the above statement is executed, it causes all the files to be read and are stored in the UploadedFiles directory.

Only later can the user can go through each file to do his validation. It would be nice if we provide a way for users to specify validation settings regarding this.
Comments: Related to our batching feature, and those settings should live in the batching layer, not the provider layer.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>