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 December 14th, 2004, 03:27 AM
Authorized User
 
Join Date: Aug 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Prabhakar_dt
Default File Upload and Deletion

Hi to all,
         I want full code and process of file uploading. After uploading file how I can delete any particular file.

Thanks in Advance


Prabhakar Kumar
__________________
Prabhakar Kumar
 
Old December 14th, 2004, 04:27 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Please check the following code to upload and view the file uploaded.

http://codeproject.com/asp/Display_Images_from_Data.asp
http://codeproject.com/asp/uploader.asp

Om Prakash
 
Old December 17th, 2004, 07:23 AM
Authorized User
 
Join Date: Aug 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Prabhakar_dt
Default

Thanks om ... but these codes are only for file uploading. How i can delete the uploaded files.


Prabhakar Kumar
 
Old December 17th, 2004, 08:23 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

You can use the FileSystemObject object to do this.

HTH,

Chris

 
Old December 23rd, 2004, 07:42 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Please check the following code to delete file from the server using ASP:

 Dim fso
 Set fso = CreateObject("Scripting.FileSystemObject")
 fso.DeleteFile(filespec)

Where filespec is The name of the file to delete.


Om Prakash





Similar Threads
Thread Thread Starter Forum Replies Last Post
Filter File Types in ASP.NET File Upload ramuis78 ASP.NET 2.0 Basics 2 May 31st, 2007 10:50 AM
TEMP file deletion Sebastiaan VBScript 0 March 15th, 2007 09:36 AM
Whole Folder upload(Multi file Upload) ramasamy_rams XML 1 September 9th, 2005 12:43 PM
Linux: uninstalling MySQL by manual file deletion ninsat MySQL 1 March 16th, 2005 12:42 PM
JSP file upload and delete file pandjie JSP Basics 0 January 29th, 2005 10:49 PM





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