Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 August 6th, 2003, 09:59 PM
Registered User
 
Join Date: Jul 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to limit the size of upload image?

Upload image form:

<form name="frmzsimg" enctype="multipart/form-data" method="post" action="upimage.asp">
    <INPUT type=file name=image>
    <input type="submit" name="Submit" value="Ìá½»">
</form>

want to limit the size of image within 50k in a vbscript sub:

<SCRIPT LANGUAGE="VBScript">
    Sub frmzsimg_onsubmit
    ......
    end sub
</SCRIPT>

how to write this vbs~~~~??~

 
Old August 8th, 2003, 01:00 AM
Authorized User
 
Join Date: Jun 2003
Posts: 90
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to tdaustin Send a message via Yahoo to tdaustin
Default

If your using a upload component they will all have these features available to you.

eg. I use aspSmartUpload.

' Deny upload if the total file size is greater than 1 MB
mySmartUpload.TotalMaxFileSize = 100000

Read through your component documentation and you will find your answer

HTH


TDA





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
User file size limit underscore10304 Windows Server 0 September 28th, 2006 06:57 AM
XML SIZE LIMIT Tristany SQL Server 2005 7 September 14th, 2006 01:01 PM
Limit the Size of String Input phungleon Classic ASP Databases 3 May 4th, 2005 11:31 PM





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