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
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

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