perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Curtis <rich...@crosswired.co.uk>
Subject Re: Another stupid question...
Date Mon, 10 Feb 2003 22:50:09 GMT
Well, this is what I dont understand :)
if I do "$newFile = $Request->Form('filename')";
"print $newFile";
I get back a filename eg, "test.doc".
The next thing I do is $Session->{uploaded_files} = $newFile;

However... if I do "use Data::Dumper; print Dumper $newFile", I get back...

$VAR1 = bless( \*{'Fh::fh00001test.doc'}, 'Fh' );

I am lost.

Any thoughts ?
Richard

> I think I understand.
> 
> does $newfile contain the filename before being put into the $Session? I 
> guess I'm just not sure whats failing.. Is it the 
> $Request->Form('filename') ?
> 
> Richard Curtis wrote:
> 
>> Errrr....
>> I dont do it like this.
>> I post into the page, then "my $newFile = $Request->Form('filename')" 
>> gives me the handle/filename.
>>
>> I upload the file (using a perl function I wrote), then afterwards, 
>> set $Session->{new_file} = $newFile;
>>
>> I do all of the upload manually. I have a perl function in a module 
>> which reads from $newFile, and puts the data where I want it.
>>
>> Richard
>>
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Mime
View raw message