Re: Storing a file from a cgi parameter

2009-06-22 Thread Gunnar Hjalmarsson
J Alejandro Ceballos Z wrote: Gunnar Hjalmarsson wrote: J Alejandro Ceballos Z wrote: I am trying to store a file in the temp directory. It creates the desired file, but with size 0. The files are videos sent via CGI. I tried with the upload function, but it did not work too. Would you ple

Re: Storing a file from a cgi parameter

2009-06-21 Thread J Alejandro Ceballos Z
As I understand, the code must be overwritten like: #!/usr/bin/perl -T use CGI::UploadEasy; use CGI; use strict; use warnings; # create and load data my $ue = CGI::UploadEasy->new(-uploaddir => '~/tmp'); my $file_file = $cgi_this->param('sbvideo_file') || 0; # r

Re: Storing a file from a cgi parameter

2009-06-19 Thread Alexander Krasnorutsky
On Tue, 2009-06-16 at 21:29 -0500, J Alejandro Ceballos Z wrote: > I am trying to store a file in the temp directory. > > It creates the desired file, but with size 0. > > The files are videos sent via CGI. I tried with the upload function, > but it did not work too. > > Would you please give

Re: Storing a file from a cgi parameter

2009-06-17 Thread Gunnar Hjalmarsson
J Alejandro Ceballos Z wrote: I am trying to store a file in the temp directory. It creates the desired file, but with size 0. The files are videos sent via CGI. I tried with the upload function, but it did not work too. Would you please give me some direction about what I am doing wrong or