[Bioperl-l] need help

Donald G. Jackson donald.jackson at bms.com
Thu Jan 22 11:05:52 EST 2004


With newer versions of CGI.pm, I found the $query->upload('seqfile') 
method to be a more reliable way of getting the handle to an uploaded file.

Don Jackson

Gert Thijs wrote:

>Pierre,
>
>You should make sure that you read the input from the file handle and
>not the file name. 
>when reading the file parameter as
>  my $seqFile = $query->param('seqfile');
>
>$seqFile is a handle to the file stream. So you can do things like
>  while ( <$seqFile> ){
>    # do something with string
>  }
>but you cannot use 'open' to open the file for reading, since it is
>already open.
>
>I guess you can also do something like
>  my $seqio = new Bio::SeqIO( -fh => \$seq );
>although I am not sure this will work.
>
>
>Gert
>
>
>
>Gert
>
>
>On Thu, 2004-01-22 at 14:53, KHOUEIRY pierre wrote:
>  
>
>>Hi everyone;
>>I wrote a script using bioperl methodes. In fact my problem isn't in 
>>bioperl modules. I find problems on submitting my html form. When the 
>>user browse a file, i can't open it. I used a post methode
>><Form  name="parameter" METHOD="POST" action="/cgi-bin/script.pl" 
>>target="_blank">.
>><INPUT NAME="seqfile" TYPE="file" class = "text">
>>...
>>
>>in my perl script i collect forms fields. but i can't open  user's file.
>>Anyhelp will be appreciated
>>
>>
>>_______________________________________________
>>Bioperl-l mailing list
>>Bioperl-l at portal.open-bio.org
>>http://portal.open-bio.org/mailman/listinfo/bioperl-l
>>    
>>




More information about the Bioperl-l mailing list