[Rainbowportal-devel] Bug
Brought to you by:
danijel_kecman,
manudea
From: Leo D. <le...@cl...> - 2004-09-28 16:28:17
|
I need to concede defeat. I have been spending a lot of time trying to find a way to fix this bug... http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D957922&group= _id =3D66837&atid=3D515929 but it is beyond my realm of expertise. If anyone else would like to tackle it feel free too. =20 Chris Hynes has offered to let us use his SlickUpload control in order to make the document upload smoother. However, it doesn't really do anything to help with this particular bug. =20 From the research that I've done there are a couple of ways that this bug can be fixed... 1. Change the <httpRuntime useFullyQualifiedRedirectUrl=3D"true" maxRequestLength=3D"4096" /> setting and increase the maxRequestLength = to a much larger number. NOTE: This doesn't fix the bug; it merely hides it in most circumstances. The main problem with this approach is as follows... a. The error is not thrown until the maxRequestLength has actually been exceeded. For example, say the maxRequestLength is 10MB, and the user is uploading a 11MB file over a slow connection. The server would throw the error once the request length hits 10MB which means that the user just wasted a lot of time while s/he tried to upload the file. 2. (The correct way) Use client side JavaScript to check the maxRequestLength setting in the web.config file. The JavaScript code could then calculate the file size BEFORE the file is uploaded, and it could alert the user that the file is too large to be uploaded to the server. =20 Because I lack the experience with creating client side scripts, and I don't have the time to learn JavaScript, I am offering this bug back to the Rainbow Community. =20 This link, offered up by David Reed, comes close to getting this feature implemented. The JavaScript will calculate the files size, and offers a good start for a JavaScript programmer to compare that value to the maxRequestLenght. http://www.faqts.com/knowledge_base/entry/edit/index.phtml?aid=3D1685=20 =20 If you decide to take this bug over, and still have questions after reading this message, please contact me. =20 Thank you, =20 Leo |