PDA

View Full Version : Delete files using persits


Chaps
03-19-2004, 04:07 AM
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

bruce
03-19-2004, 04:30 AM
According to persits, this feature has potential security issue. You should consider using File SYstem Object to delete the file (FSO)


[b]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">

Chaps
03-23-2004, 08:38 AM
Thanks will do just that.