Ask a Question related to ASP.NET General, Design and Development.
-
PJ #1
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...the> 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...> html> > 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> (you> > file elements and yes - you could increase the page processing timeout> > also have to up the amount of data the request can contain - i forgetwe> > 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 doapps> > build this site without using sessions. why?
> >
> > many hosting companies do ridiculous memory recycles - and i need myconsider> to> > survive no matter what the server environment. you might wish tofor> > this also if its internet. you might find users connections just cutas> 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 blanks5> 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 tosetting> > take> > > files or so and they may be up to 10mb a piece. Therefore, this could> > > a little while to upload.
> > > Would you recommend using the file input html elements and just>> > the> >> > > page timeout to a really high number?
> > > Please help.
> > > Mark
> > >
> > >
> >
>
PJ Guest
-
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... -
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... -
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... -
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. ... -
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... -
Phong Pham #2
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
-
Steve C. Orr, MCSD #3
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...uploading> I'm creating a web page to upload files, but I'm having a problem> 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



Reply With Quote

