File Content.Length

F

Fronky

Hi everyone,

I'm having a problem when trying to stream a file into a database.
If the file size is below 4mb, then the web upload works fine.
However, if the file size exceeds 4mb, then the page simply errors (an IIS
error with no helpful info.)

The line I'm believing to be the problem is below:

"HttpPostedFile myFile = filMyFile.PostedFile;
nFileLen = myFile.ContentLength;"

From this I am unable to determine the file size for error checking/size
limits etc..
I have attempted to place a catch on this, but that is also ignored.

Is there is limitation on the file length that you can upload via asp.net c#
web applications?
PLEASE HELP!!!

Cheers
Fronky
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top