.net-3.5web-confighttpruntime

how to set Maximum upload size to 4GB


please look at the screen shotsweb.config

error when i executed

i need to set upload file size upto 4GB

also this is my 3.5 web app why it is shown that version information as v2.0

is there any mistake in my config?

help me guys.


Solution

  • in my opinion you never allow 4gb to upload at once, use segments. i suggest you to read following links, which has awesome explanation.

    1. Large File Uploads in Asp.net - Jon Galloway
    2. Dark side of File Uploads.

    Suggestion :

    1. Try some flash/silverlight based uploads (Telerik has support of silverlight upload) or SwfUpload
    2. try to re-think about the architecture, how you are going to save 4gb+ data for each user? .

    you can set maxRequestLenght attribute, but setting this value to higher, will lead to hacker to crazy things. and your server will get load.