473,324 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Unable to upload file on server

I am using File Upload Control to upload file on server. If size of
the file exceeds maxRequestLength property in httpRuntime section of
my configuration file, then DNS error is thrown. how can i restrict
the user from selecting a file of specific size.

Best solution would be if i can restrict the user on client side. If
not possible, then how can i handle the DNS error on server?

Any help would be greatly appreciated.

Best Regards,
Paras Shah
(VMF SoftTech Ltd.)
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 18 '05 #1
1 1772
you will have to rely on some funky javascript on client to block the submit
if the client is uploading a file bigger than xxxxx

there was a post a few weeks back... on a similar issue

check this line.. its got some javascript to open the file and check its
size...
https://lists.latech.edu/pipermail/j...il/005190.html

http://www.dotnet247.com/247referenc.../19/95057.aspx

http://codingforums.com/showthread.p...threadid=30449

hope this helps... never tried using client side validation on filesize...

--
Regards,
HD
Once a Geek.... Always a Geek
"paras" <pa********@yahoo-dot-com.no-spam.invalid> wrote in message
news:40**********@Usenet.com...
I am using File Upload Control to upload file on server. If size of
the file exceeds maxRequestLength property in httpRuntime section of
my configuration file, then DNS error is thrown. how can i restrict
the user from selecting a file of specific size.

Best solution would be if i can restrict the user on client side. If
not possible, then how can i handle the DNS error on server?

Any help would be greatly appreciated.

Best Regards,
Paras Shah
(VMF SoftTech Ltd.)
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ruddy | last post by:
hi, i´m trying to upload a file. I tried many ways but it always return the same error... Unable to open c:\file.jpg for reading. the file exists, but any file gives me the same error.. ...
2
by: Amjad | last post by:
Hi i have problem . i am using asp.net and i can upload file upto 2mb very fine no server connection lost nothing..... i extend the max size to 10mb and allow user to upload that much file to the...
0
by: PeterB | last post by:
Hi! I want to debug some ASP (VB) scripts on a ASP application I have. I am running a local IIS server on Win XP Professional, and use Visual Studio ..NET as debugger. I'm trying to debug the...
1
by: PeterB | last post by:
Hi! I'm using Pure ASP File Upload (http://www.asp101.com/articles/jacob/scriptupload.asp) to upload a file from a client to a server. I am testing both on a local IIS and a remote server. The...
0
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
3
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
0
by: ll | last post by:
I'm working with 'pure ASP upload' script which is designed to redirect to an alert/error message, should a file larger than the set limit be attempted to be uploaded. The problem is that, while...
5
by: kailashchandra | last post by:
I am trying to upload a file in php,but it gives me error msg please Help me? My Code is like below:- i have one php file named upload.php and i have another html file named upload.html and...
5
by: maheswaran | last post by:
Hi, i have issue in FTP , i have tried with .net and also c# Note the following scenario: 1. Upload the file to FTP >than 60 MB. 2. At the time of Uploading, unplug the LAN cable (or)...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.