in reply to Allow User to Select Which Files to Delete
Then use cgi.pm in upload.cgi to decompose the returned parameters and allow for the deletion of multiple files. something likeforeach (@files) { print "<br> Delete this File: <INPUT TYPE=\"checkbox\" NAME=\"files\" +VALUE=\"$_\">\n"; }
Please be warned that this is hideously insecure as it stands it would allow someone to pass any file path they want, and if the web servers user had permission, they could delete important files.foreach ($query->param('files')){ unlink($_); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Allow User to Select Which Files to Delete
by lex2001 (Sexton) on Nov 19, 2001 at 15:27 UTC | |
by fuzzysteve (Beadle) on Nov 19, 2001 at 16:51 UTC |