Delete files using persits

Discussion in 'Classic ASP' started by Chaps, Mar 19, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I'm trying to create an admin area where my customer can go to delete some old image files from the server. I was looking at persits aspupload component since this is what I use to upload the pics. using their sample code but using server.mappath to create the directory path I get the following error.

    Persits.Upload.1 error '800a0028'

    This feature has been disabled by system administrator.

    /admin/imagedelete.asp, line 33

    Line 33 reads
    Set Dir = Upload.Directory( Directory & "*.*", Request("sortby"))

    I assume this has something to do with the virualsave I read in another post but since I'm not saving I'm deleting I tried to change the upload.directory to upload.savevirtual but that didn't work either.. Any suggestions?

    Thanks
    Chaps
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    According to persits, this feature has potential security issue. You should consider using File SYstem Object to delete the file (FSO)


    quote:Originally posted by Chaps

    I'm trying to create an admin area where my customer can go to delete some old image files from the server. I was looking at persits aspupload component since this is what I use to upload the pics. using their sample code but using server.mappath to create the directory path I get the following error.

    Persits.Upload.1 error '800a0028'

    This feature has been disabled by system administrator.

    /admin/imagedelete.asp, line 33

    Line 33 reads
    Set Dir = Upload.Directory( Directory & "*.*", Request("sortby"))

    I assume this has something to do with the virualsave I read in another post but since I'm not saving I'm deleting I tried to change the upload.directory to upload.savevirtual but that didn't work either.. Any suggestions?

    Thanks
    Chaps
    </blockquote id="quote"></font id="quote">
     
  3. Thanks will do just that.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page