Print Page | Close Window

delete file if not size/type

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=9286
Printed Date: 07 April 2026 at 6:54pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: delete file if not size/type
Posted By: snooper
Subject: delete file if not size/type
Date Posted: 27 January 2004 at 1:23pm

hey gang

i'm using aspSimpleUpload here.

when uploading images/files - if the file isnt the right type or size - the user usnt allowe to use it.

isn't it a good idea to them delete the file straight away, instead of leaving it in its folder?

i have added an extra couple of lines to ndo just that. not sure if maybe 7.7 does this already.

thanks

Sn




Replies:
Posted By: WebWiz-Bruce
Date Posted: 27 January 2004 at 2:35pm
I have fixed it for the next version, just remove 1 line of code to out side the if statement.

Upload now also include the date and time in te file name so that you know when the file was uploaded.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: snooper
Date Posted: 27 January 2004 at 2:43pm

yep, thats it.

time stamp is a good idea too!




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