Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Server Side Programming > ASP and ASP.NET
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 09-16-2009, 05:15 PM
  #1
gillweb
Swordman (Level 9)
 
gillweb's Avatar
 
Join Date: May 2004
Posts: 87
iTrader: (0)
gillweb is on a distinguished road
ASP Restrict File Size on Upload

I am using the script located here. I'd like to know how I can restrict the file size of the uploaded file.. Is there a way for the script to see how big the file is 'before' uploading it?
gillweb is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-17-2009, 01:00 PM
  #2
afterburn
Can't say much here
 
afterburn's Avatar
 
Join Date: May 2004
Posts: 2,851
iTrader: (0)
afterburn will become famous soon enough
Quote:
Originally Posted by gillweb View Post
I am using the script located here. I'd like to know how I can restrict the file size of the uploaded file.. Is there a way for the script to see how big the file is 'before' uploading it?
I would not use that script ... the parsing is good and correct from what i have seen however it is a script and it is oLogN function because of that. upload a small file can take 100 times longer than a compiled C++ one. They are hard to find for free but can be done. And Have the properties to limit upload size.

In ASP as a side note: once you access request.binaryread no other request properties can be accessed; so you must rely on the component to parse it and give you access to them....
__________________
ASP.net nice bits
Code Smith rocking tool for Code Generation in any language (Written in .net)
Red Gate SQL tools for DBA
Blog Personal blog
.afterburn
afterburn is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart



 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 03:58 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.