enable testing of $session->request->uploads through WebGUI::PseudoRequest. Now we need a good utility method for sending a list of files to a sub and having it return a list of filehandles to those files
This commit is contained in:
parent
175304e915
commit
4de53b2de9
2 changed files with 34 additions and 1 deletions
|
|
@ -145,6 +145,17 @@ sub status_line {
|
|||
return $self->{status_line};
|
||||
}
|
||||
|
||||
sub upload {
|
||||
my $self = shift;
|
||||
my $formName = shift;
|
||||
my $uploadFileHandles = shift;
|
||||
return unless $formName;
|
||||
if (defined $uploadFileHandles) {
|
||||
$self->{uploads}->{$formName} = $uploadFileHandles;
|
||||
}
|
||||
return @{ $self->{uploads}->{$formName} };
|
||||
}
|
||||
|
||||
sub uri {
|
||||
my $self = shift;
|
||||
my $value = shift;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue