[ 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ƒ.
&ƒ
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);
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,
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
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
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"
>
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
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
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