Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 23rd, 2005, 11:14 AM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Upload Size

Im currently trying to give a better explanation to a user when the file they tried to upload exceeding the max set. Currently what happens is that a generic error page is pushed out. I have tried to Redirect/Transfer in the "Application_BeginRequest" and the "Application_Error" in the Global.asax but I still get the generic error page instead of redirecting to the upload page with an error message. I'm heart beat away from taking up knitting.

 
Old February 23rd, 2005, 02:47 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default

what are you using to Upload files, any third party components?

 
Old February 23rd, 2005, 02:49 PM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

None

 
Old February 23rd, 2005, 03:45 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default

check the file size
IF ((txtUpload.PostedFile.ContentLength/1024) > 1024 ) Then
Response.Write("File size exceeded")
End IF

Also, there is a limitaion on file size you can upload read on..

http://support.microsoft.com/default...;en-us;.295626






Similar Threads
Thread Thread Starter Forum Replies Last Post
ch. 2 what is the file size limit to upload? cluce BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 February 19th, 2008 04:48 PM
Upload .txt file of size 15 mb or more rapraj PHP Databases 1 October 24th, 2007 06:34 PM
how to limit the size of upload image? rockercheng Classic ASP Basics 1 August 8th, 2003 01:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.