Ask a Question related to ASP.NET General, Design and Development.
-
Darryl #1
Upload file in asp.net
Hi all,
I'm now facing a problem of uploading file greater than 5mb.
1. I'm using the vb.net to create my form, where the form has an aspx.vb
code behind.
2. I've added <form id="Form1" method="post" encType="multipart/form-data"
runat="server"> in the form.
3. I've added a control <input id="fileDoc" type="file" name="fileDoc"
runat="server"> in the form
4. I've added a button to trigger the upload.
5. Inside the button_onClick, fileDoc.PostedFile.SaveAs(<server file path
and name>) to post the file to the server.
For files less than 5MB, it runs ok, but if the file exceed 5MB, the file
cannot be uploaded to the server.
I've told that there is some file size limitation of the
encType="multipart/form-data", is that the problem caused by this??
If it is so, how can I solve this problem??
THANKS!!
Best Regards,
Darryl.
Darryl Guest
-
How to upload a file to 2 FTP sites without an upload component for company
Hi All I can't get round this because it's a local government thing, but I've done a CMS for a school (in ASP classic) that allows them to upload... -
Upload Friendly (Multiple File Upload Applet)
Title : Upload Friendly (Multiple File Upload Applet) Description : UploadFriendly is an easy to use Java Applet that will allow multiple file... -
LWP - multipart/form-data file upload from scalar rather than local file
I'm looking to do an HTTP upload, preferably with HTTP::Request::Common, but get the file data from either a filehandle or a scalar rather than... -
#24574 [NEW]: File corruption during file upload
From: ivan at artenergy dot com Operating system: FreeBSD 4.7/Apache1.3.27 PHP version: 4.3.2 PHP Bug Type: Filesystem... -
how to upload an image selected from html file to flash file?
Hello, I have one html file and a flash file. In html file, it is functioning like choosing a Tshirt to design, then how to load that Tshirt picture... -
Ravikanth[MVP] #2
Upload file in asp.net
Hi
The answer to this question is yes and no. At
runtime, .Net framework checks the maximum size for the
request object. This information is obtained from the
application's condiguration file. If this limit is not
specified in web.config file, then it is obtained from
machine.config file. By default this limit os set to
4096KB.
<httpRuntime executionTimeout="90"
maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100"/>
To modify this limit, you can change the number in
machine.config. but preferably, create the entry in your
application's web.config file.
Ravikanth[MVP]
5mb.>-----Original Message-----
>Hi all,
>
>I'm now facing a problem of uploading file greater thanform has an aspx.vb>
>1. I'm using the vb.net to create my form, where theencType="multipart/form-data">code behind.
>2. I've added <form id="Form1" method="post"name="fileDoc">runat="server"> in the form.
>3. I've added a control <input id="fileDoc" type="file"(<server file path>runat="server"> in the form
>4. I've added a button to trigger the upload.
>5. Inside the button_onClick, fileDoc.PostedFile.SaveAsexceed 5MB, the file>and name>) to post the file to the server.
>
>For files less than 5MB, it runs ok, but if the filecaused by this??>cannot be uploaded to the server.
>
>I've told that there is some file size limitation of the
>encType="multipart/form-data", is that the problem>If it is so, how can I solve this problem??
>
>THANKS!!
>Best Regards,
>
>Darryl.
>
>
>.
>Ravikanth[MVP] Guest



Reply With Quote

