Forum Moderators: open
When I select a File from the dialog, whether it be from a remote source or local source, or no matter how long the file name is, IF it's over 4.093 megs ASP.NET will not display the page. What I am doing is, I have a regular image control that I plan to set the .ImageUrl for during runtime. I want to set this property with the open dialog box that appears when I click on it. Well I did some logging and it seems that when I goto run an event such as a regular button, it wont set the property of the image control if the file size is above 4.093. I did some more logging, and I noticed that it would display an image at 4.092 but not one that is 4.097. Unfortunatly I don't have images that are between there BUT I do know that somwhere between there Open dialog will not handle a file this big. How this open file dialog should work is that when it is clicked you should be able to go out and get this file that you want and then after that it should just get the path of that file name. THAT is it. BUT for some reason if it is too big the event that you want to set the property to will not even be called. Page load won't even be called....what up with that?! Thing is, is that open dialog (or the control <input type="file">) somehow realizes a file size and will not send back to the server, or the server gets it from dialog and doesn't want to processs it. So my quesion is, is that has anyone recalled an isntance of this? Is there a way to intercept the data between open dialog and the server? Can anyone give me documentation on this possible bug? or better yet, has anyone encoutered this and has found a work around? Any suggestions, whifs or frustrations would be greatly appreciated. This forum has inspired me to stick with it, and seek for external resources. Thank you all!
<httpRuntime maxRequestLength="102400" />
I think the maximum you can extend this is to 2 GB, but someone may correct me here.