Re: perl for uploading file shows weird characters.

2008-01-12 Thread Gunnar Hjalmarsson
[ please do not multi-post! ] Patrik Hasibuan wrote: I am writing perl-cgi application for uploading a file. I did "chmod 777 ../../artikel". But I get weird displayed message: " ueri: 4CyrMz2ZeGIClwYfFsVdcv Co î 6êÎ]Ë kšfþx·¾ ðfS4M3>º {½‡<Óöù³®�¯3çýGèBù= „¬È›øRƒ. &ƒ

Re: Uploading file

2004-03-19 Thread Camilo Gonzalez
Ash Singh wrote: Use this as an example, it converts the file to binary mode just in case its not. It also strips out the path of the file coming from the user's local machine. #!/usr/bin/perl use CGI; use strict; my $cgi = new CGI; print $cgi->header; my $query = CGI::new(); use CGI qw(param);

RE: Uploading file

2004-03-18 Thread Ash Singh
Use this as an example, it converts the file to binary mode just in case its not. It also strips out the path of the file coming from the user's local machine. #!/usr/bin/perl use CGI; use strict; my $cgi = new CGI; print $cgi->header; my $query = CGI::new(); use CGI qw(param); my ($bytesread,

RE: Uploading file

2004-03-18 Thread Bill Tribley
Sent: Thursday, March 18, 2004 11:57 PM To: CGI Beginners Subject: Uploading file Okay, I'm totally stumped. I'm trying to upload a file using a browser and a file upload field and saving the file to my server. The code is as follows: my $filename = $cgiobj->param('uploade

Uploading file

2004-03-18 Thread Camilo Gonzalez
Okay, I'm totally stumped. I'm trying to upload a file using a browser and a file upload field and saving the file to my server. The code is as follows: my $filename = $cgiobj->param('uploaded_file'); my $fh = $cgiobj->upload('uploaded_file'); open (OUTFILE, ">../featImages/$filename

Re: uploading file

2001-11-30 Thread Scott R. Godin
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Djoko Priyono) wrote: > > your best bet is to read the docs for CGI.pm. you can do that by > > typing: > > > > perldoc CGI this isn't as good a choice as the below for the simple reason that the docs would make the .pm file "friggin' huge" >

Re: uploading file

2001-11-30 Thread Djoko Priyono
On 30 November 2001 Friday 12:20 am, fliptop wrote: > Pedro A Reche Gallardo wrote: > > Hi all, I am beginner with cgi scripting and I am trying to make a cgi > > script that can upload a file, and work with it, or alternatively if > > there no file to upload is specified, use the input pasted in

Re: uploading file

2001-11-29 Thread fliptop
Pedro A Reche Gallardo wrote: > > Hi all, I am beginner with cgi scripting and I am trying to make a cgi > script that can upload a file, and work with it, or alternatively if > there no file to upload is specified, use the input pasted in the form > "text area". I now how to do the second one, b

uploading file

2001-11-29 Thread Pedro A Reche Gallardo
Hi all, I am beginner with cgi scripting and I am trying to make a cgi script that can upload a file, and work with it, or alternatively if there no file to upload is specified, use the input pasted in the form "text area". I now how to do the second one, but I am unable to deal with both inputs