Welcome Guest! You need to login or register to make posts.



Go to last post Go to first unread
#1 Posted : Wednesday, February 29, 2012 2:44:01 AM(UTC)

Rank: Member

Groups: Member
Joined: 11/29/2011(UTC)
Posts: 10

Thanks: 2 times
I recently hit the wall while using the image uploader to upload a bunch of files.

Uploading 38 files, gave me a form collection of 1032 key/value pairs in ASP.NET MVC.

This just resulted in an undisclosed exception that I now resolved to be caused by a relatively new limit in ASP.NET, aspnet:MaxHttpCollectionKeys, see this post: http://weblogs.asp.net/s...-thursday-dec-29th.aspx.

The default is 1000, see this post: http://support.microsoft.com/kb/2661403.

This leaves me with three options:
- Limit the amount of files that can be uploaded in one go, in the Image Uploader.
- Raise the aspnet:MaxHttpCollectionKeys on the server side and impose the max file count limit.
- Upload the files in parts or in batches of 10 files at a time.

The last solution, 10 files at a time, is probably the best option, but is also flawed:
- If a cookie is sent back from the server, the Image Uploader does not reflect the change in the next batch, making it useless when the users authentication cookie needs to be updated.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.