Print Page | Close Window

persists aspupload

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=2851
Printed Date: 29 March 2026 at 7:40pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: persists aspupload
Posted By: ultramods
Subject: persists aspupload
Date Posted: 19 May 2003 at 5:35pm

Wondering if anyone can help me please. Im able to upload pictures no problem until i introduce a maximum file size. If i then upload three pictures, the first two which are under the maximum file size and the third which is over then the script works fine. However if i then try it in reverse order the script will recognise the first file as being to large but then it wont save the next two pics which are under the maximum size.

'****************SET PIC DIRECTORY ETC********
'SAVE PICS TO DIRECTORY
Set Upload = Server.CreateObject("Persits.Upload")

Upload.OverwriteFiles = False

' Limit file size to 2000 bytes, throw an exception if file is larger
Upload.SetMaxSize 2000, True

' Intercept all exceptions to display user-friendly error
On Error Resume Next

Upload.Save "*********\carPics\pics"
'****************END SET PIC DIRECTORY ETC*********

any help would be greatly appreciated.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net