After slashcode 2.2 it is possible to make uploads using HTTP Upload. This is a possible solutions using the importFile function that exists in some old slashcode:
sub importFile {
# Check for a file upload
my $section = $_[0];
my $constants = getCurrentStatic ();
my $basedir = $constants->{'basedir'};
my $rootdir = $constants->{'rootdir'};
my $form = getCurrentForm();
my $upload = $form->{query_apache}->upload;
return '' if !$upload;
my $file = $upload->fh;
...
}
In $file you have a file descriptor that points to the upload file.
HTTP Upload, a possible solution (Score:2)
sub importFile {
# Check for a file upload
my $section = $_[0];
my $constants = getCurrentStatic ();
my $basedir = $constants->{'basedir'};
my $rootdir = $constants->{'rootdir'};
my $form = getCurrentForm();
my $upload = $form->{query_apache}->upload;
return '' if !$upload;
my $file = $upload->fh;
...
}
In $file you have a file descriptor that points to the upload file.
Re:HTTP Upload, a possible solution (Score:2)
--
You can't grep a dead tree.