Advertisement

02.13.2008 at 05:49AM PST, ID: 23159517
[x]
Attachment Details

How to avoid a hungup of the application when someone tries to upload /image)files gretaer than 4MB?

Asked by Joar in Programming for ASP.NET, Microsoft Visual Basic.Net, WebApplications

Tags: Microsoft, Visual Basic 2005, VB.net, IE

I have an application where the user shal be able to upload images.
The fileupload function is said to have a filesize limit of 4MB and that is OK.
But the problem is that I seem to be unable to interfere and stop the user trying to load images > 4MB, and then the application is hanging!
Thats stupid!
I guess there must be a workaround?

the "Hasfile" and "ContentLength only functions when the filesize iss less than 4MB??!!
Start Free Trial
1:
2:
3:
4:
5:
If fuLogo.HasFile Then
                If fuLogo.PostedFile.ContentLength > 200000 Then
                    Session("Errmsg") = "Too big size of the file....!"
                Else
and so on....
 
Loading Advertisement...
 
[+][-]02.13.2008 at 07:05AM PST, ID: 20884722

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.13.2008 at 07:13AM PST, ID: 20884795

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.13.2008 at 08:06AM PST, ID: 20885306

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.13.2008 at 08:21AM PST, ID: 20885476

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.13.2008 at 09:15AM PST, ID: 20886022

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.13.2008 at 09:17AM PST, ID: 20886036

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Programming for ASP.NET, Microsoft Visual Basic.Net, WebApplications
Tags: Microsoft, Visual Basic 2005, VB.net, IE
Sign Up Now!
Solution Provided By: sachintana
Participating Experts: 2
Solution Grade: C
 
 
[+][-]02.14.2008 at 09:09AM PST, ID: 20895090

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628