Uploading large files

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Re: Uploading large files

    It's in the web config...

    <httpRuntime
    executionTimeout="2400"
    maxRequestLength="131072"
    />

    There's a practical limit as well. The machine.config stores the settings
    of how much memory the aspnet_wp.dll is allowed to use. If you need to
    upload really large files, you will either have to buy a 3rd party
    httphandler or write your own.


    "Mark" <maxmann@kc.rr.com> wrote in message
    news:%23HDtahfODHA.3236@TK2MSFTNGP10.phx.gbl...
    > This is going to be over the internet. I'm going to allow users to upload
    > mpeg and mp3 files for example, that will be submitted for approval by
    > myself in order to be posted on the site for download by other users.
    > Any suggestions now?
    > PS> How do you increase the page processing timeout in order to make the
    > file element work with large files?
    >
    >
    > "Jason" <123456789clopper@totalise.co.uk987654321> wrote in message
    > news:e4x2KVdODHA.2052@TK2MSFTNGP11.phx.gbl...
    > > i think you need to think carefully of your target audience - if its
    > > internet then i'd stop right now - if its intranet proceed. i use the
    > html
    > > file elements and yes - you could increase the page processing timeout
    > (you
    > > also have to up the amount of data the request can contain - i forget
    the
    > > attribute name) - but with those numbers - if you use session - you'll
    > > probably want to increase that also. to tell a lie - i've stopped using
    > > sessions altogether - i now from the beginning phase say - ok - how do
    we
    > > build this site without using sessions. why?
    > >
    > > many hosting companies do ridiculous memory recycles - and i need my
    apps
    > to
    > > survive no matter what the server environment. you might wish to
    consider
    > > this also if its internet. you might find users connections just cut
    for
    > no
    > > reason if your hosting is crap. not nice if you are 25mb in.
    > >
    > > for alternative suggestions you'll have to fill in some missing blanks
    as
    > to
    > > what you are doing.
    > >
    > > cheers
    > >
    > >
    > >
    > > "Mark" <maxmann@kc.rr.com> wrote in message
    > > news:u3Zs8EdODHA.1752@TK2MSFTNGP12.phx.gbl...
    > > > Hey, I'm writing a web page that I need to allow users to upload up to
    5
    > > > files or so and they may be up to 10mb a piece. Therefore, this could
    > > take
    > > > a little while to upload.
    > > > Would you recommend using the file input html elements and just
    setting
    > > the
    > > > page timeout to a really high number?
    > > > Please help.
    > > > Mark
    > > >
    > > >
    > >
    > >
    >
    >

    PJ Guest

  2. Similar Questions and Discussions

    1. uploading large files with fileReference
      Hello Forum I am encoutering trouble with fileuploading using the new flash 8 fileReference class. The server seems to be set up to handle...
    2. uploading large files through ASP
      Hi , I have a requirement where i need to upload big files to the server through a web browser. Something like a file upload in mail...
    3. Illustrator CS files with large linked files results in large file size
      If I place a large linked Photoshop 7 file (.psd or.eps), say 36 MB, in Illustrator CS and save without embedding the file it takes ages to save and...
    4. Uploading large files thru HTTP
      Hi all, I am uplaoding files from one server to another server using Perl HTTP post. But when the file size increases to 2 MB , i get error. ...
    5. Uploading large files - error "stat failed"
      Hello, I have a page where i can upload binary file (using the HTML input type=file approach). This works fine for relatively small files...
  3. #2

    Default Uploading large files

    I'm creating a web page to upload files, but I'm having a problem uploading
    files larger than about 3.5 mb. Anything smaller than 3.5 mb is ok. If the
    file is larger, it doesn't generate an error, it just doesn't do anything.
    Can anyone show me how to fix that problem?

    I'm also trying to trap any files larger than 3.5 mb to let the user know
    that they can't upload files larger than that:

    If MyUpload.PostedFile.ContentLength > 3500000 then
    lblMessage.Text = "File size cannot exceed 3.5 mb limit"
    End If

    But if the file is 4 mb or bigger, that code doesnt' catch it. Any ideas?

    Thanks first
    Phong



    Phong Pham Guest

  4. #3

    Default Re: Uploading large files

    You need to add or modify the following section in your web.config file:

    <configuration>
    <system.web>
    <httpRuntime maxRequestLength="4096" />
    </system.web>
    </configuration>

    The above value (4096 KB) is the default maximum upload file size.

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "Phong Pham" <ppham45@hotmail.com> wrote in message
    news:e$UNzBAQDHA.1624@tk2msftngp13.phx.gbl...
    > I'm creating a web page to upload files, but I'm having a problem
    uploading
    > files larger than about 3.5 mb. Anything smaller than 3.5 mb is ok. If the
    > file is larger, it doesn't generate an error, it just doesn't do anything.
    > Can anyone show me how to fix that problem?
    >
    > I'm also trying to trap any files larger than 3.5 mb to let the user know
    > that they can't upload files larger than that:
    >
    > If MyUpload.PostedFile.ContentLength > 3500000 then
    > lblMessage.Text = "File size cannot exceed 3.5 mb limit"
    > End If
    >
    > But if the file is 4 mb or bigger, that code doesnt' catch it. Any ideas?
    >
    > Thanks first
    > Phong
    >
    >
    >

    Steve C. Orr, MCSD Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139