in reply to File Upload + recording "metadata"
You can use it to create the form for uploading the file (the form "enctype" has to be "multipart/form-data"). And then you can use it to proces the file upload, the title, and the description.
CGI.pm also lets you access some metadata about the file, using the "uploadInfo" method. For more info, take a look at the CGI.pm docs.use CGI; my $query = new CGI; my $fh = $query->upload('uploaded_file'); open OUTPUT, ">/foo/save" or die "Can't open: $!"; while (<$fh>) { print OUTPUT; } close OUTPUT or die "Can't close: $!"; my $title = $query->param('title'); my $description = $query->param('description'); # now write them to a file...
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: Re: File Upload + recording
by brett (Initiate) on Jun 15, 2000 at 06:25 UTC | |
by btrott (Parson) on Jun 15, 2000 at 06:48 UTC | |
by brett (Initiate) on Jun 15, 2000 at 08:44 UTC | |
by btrott (Parson) on Jun 15, 2000 at 08:57 UTC |