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,
Camilo,
You are getting the uploaded filename/object, which you should treat as read-only,
confused with the final destination on your server that you want to write to. What you
want to do is to copy the file, not manipulate it.
Ordinarily, the file is saved by the CGI object in the tmp directo
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