RE: CPAN module for file upload/download

2005-10-25 Thread Dhanashri Bhate
Thanks a million Chris! I could use this module very well for the "file upload" part! Now working on the file download, which is giving me some trouble... I'm trying it on Windows, with Active Perl 5.8.7, and when I run the program to download a file using this, my computer just

Re: CPAN module for file upload/download

2005-10-24 Thread Chris Devers
On Mon, 24 Oct 2005, Dhanashri Bhate wrote: Could anyone please suggest what module is available on CPAN for this? Take a look at WWW::Mechanize. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

CPAN module for file upload/download

2005-10-24 Thread Dhanashri Bhate
Hello All! We have a website, which allows me to upload or download dictionary file. I am trying to write a perl program to automate the tests for this file upload/download functionality. Actually on CPAN I looked at the modules by name "HTTP", some looked useful ( URI::HTTP/

Re: Multiple file upload

2005-03-02 Thread Wiggins d'Anconia
Mallik wrote: Dear All, Anybody knows how to upload multiple files from a web page to server without using multiple file upload fields? Assumption: All files are in same directory? The user can provide the folder path (own PC) where the files exist. We don't want the user to clic

Re: Multiple file upload

2005-03-02 Thread Ricardo SIGNES
* Mallik <[EMAIL PROTECTED]> [2005-03-02T07:26:15] > Anybody knows how to upload multiple files from a web page to server > without using multiple file upload fields? The file input selects one file, and that's that. You could have the user first create an archive to upload, bu

Multiple file upload

2005-03-02 Thread Mallik
Dear All, Anybody knows how to upload multiple files from a web page to server without using multiple file upload fields? Assumption: All files are in same directory? The user can provide the folder path (own PC) where the files exist. We don't want the user to click the browse bu

RE: Spam:Re: File Upload Using CGI

2004-12-02 Thread Michael Kraus
G'day... > $file_name = $upload->file_name('sequences'); > $file_type = $uplaod->file_type('sequences'); > > $file_handle = $upload->file_handle('sequences'); I haven't checked your script that thoroughly, or compared it to how I have done it - /but/ I have noticed that you've misspelt "upload"

Re: File Upload Using CGI

2004-12-02 Thread Manas Kulkarni
OK Guys I tried using the upload method of CGI. Here is what I did: my $upload = CGI::Upload->new; *Do I need to associate the upload variable with the CGI object in some way which I am creating in the cgi script to accept the other parameters from the html form ?

Re: File Upload Using CGI

2004-12-01 Thread JupiterHost.Net
Sorry? How is foo( -name => $cgi->param("name"), -email => $cgi->param('email')); better than foo( -name => $query{name}, -email => $query{email}); ? Hey Jenda, I was referring to one of the questions about why people still want the hash like %IN and not paying much attention to th

Re: File Upload Using CGI

2004-12-01 Thread Jenda Krynicky
From: "JupiterHost.Net" <[EMAIL PROTECTED]> > Charles K. Clarkson wrote: > > > Manas Kulkarni <[EMAIL PROTECTED]> wrote: > > > > : %in = $query->Vars; # get the form data into a hash > > : > > > >Arrgh! I have never understood the desire to immediately > > place all parameters in a hash. T

Re: File Upload Using CGI

2004-12-01 Thread JupiterHost.Net
Manas Kulkarni wrote: OK. Advice taken. I have a moustache and I definitely don't wear diapers ;) Haha good one, lol ;) Thanks a lot, Manas. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: File Upload Using CGI

2004-12-01 Thread Manas Kulkarni
OK. Advice taken. I have a moustache and I definitely don't wear diapers ;) Thanks a lot, Manas. Quoting "JupiterHost.Net" <[EMAIL PROTECTED]>: > > > Charles K. Clarkson wrote: > > > Manas Kulkarni <[EMAIL PROTECTED]> wrote: > > > > : %in = $query->Vars; # get the form data into a hash > >

Re: File Upload Using CGI

2004-12-01 Thread JupiterHost.Net
Charles K. Clarkson wrote: Manas Kulkarni <[EMAIL PROTECTED]> wrote: : %in = $query->Vars; # get the form data into a hash : : foreach $key(keys %in) { : if($key eq 'sequences') { : $file_data = $in{$key}; : } : } Arrgh! I have never understood the desire to immediately place all para

RE: File Upload Using CGI

2004-12-01 Thread Charles K. Clarkson
Manas Kulkarni <[EMAIL PROTECTED]> wrote: : %in = $query->Vars; # get the form data into a hash : : foreach $key(keys %in) { : if($key eq 'sequences') { : $file_data = $in{$key}; : } : } Arrgh! I have never understood the desire to immediately place all parameters in a hash. This

Re: File Upload Using CGI

2004-12-01 Thread Jonathan Paton
Dear Manas, Use the CGI module, which provides a upload() method. In fact, I googled about for a tutorial that didn't use perl 4's cgi-lib module. Read: http://www.sitepoint.com/article/uploading-files-cgi-perl Jonathan Paton -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Addition to doubt: File Upload using CGI

2004-12-01 Thread Manas Kulkarni
Hi, I made a slight mistake in my previous post. I am not getting the key value, I am getting the name of the file instead(not the absolute path). Thanks, Manas. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

File Upload Using CGI

2004-12-01 Thread Manas Kulkarni
Hey All ! I know this is not the place to ask cgi doubts but since cgi is just a small part of my work, I had subscribed to only this list. Anyways, I am writing a perl-cgi script which will accept a file from the user through an HTML form and the script will write this file on the server side. Th

Re: file upload with Perl

2004-09-22 Thread Wiggins d Anconia
> > > I have few questions regarding file uplad: > > 1) I am try do next tutorial: http://www.redantigua.com/upload.html > > but what is "use lib qw(/home/redanti/perl);" here: > http://www.redantigua.com/UploadApp.txt > > perldoc lib C is a pragma (similar to a module, but affects the perl

file upload with Perl

2004-09-22 Thread Maxipoint Rep Office
I have few questions regarding file uplad: 1) I am try do next tutorial: http://www.redantigua.com/upload.html but what is "use lib qw(/home/redanti/perl);" here: http://www.redantigua.com/UploadApp.txt 2) What is my path instead: '/home/redanti/perl' 3) what is modul lib? Is it above li

Re: Yet more file upload questions

2004-04-23 Thread JupiterHost.Net
John Pretti wrote: All, Howdy, I appreciate all the help with file uploading. I have written a basic script similar to the file upload sample at perlmonks.com. I have noticed that it is written very loosely so I am trying to build in additional security. Some of the things I would like help

Yet more file upload questions

2004-04-23 Thread John Pretti
All, I appreciate all the help with file uploading. I have written a basic script similar to the file upload sample at perlmonks.com. I have noticed that it is written very loosely so I am trying to build in additional security. Some of the things I would like help understanding are as follows

Re: [ADMIN] Re: File upload script

2003-11-18 Thread Todd W.
"Casey West" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Casey West > > -- > f u cn rd ths, u cn gt a gd jb n cmptr prgmmng. > Where? =0) Todd W. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: File upload script

2003-11-18 Thread Dan Muey
> I'm trying to allow users to upload their own webpages. I > have both binary and text format. Although, its probably ok > to upload the webpages in binary mode and it would bother the > webserver. > If it's browser based uploads CGI can help you. Otherwise you may be interested in Net::FTP.

[ADMIN] Re: File upload script

2003-11-17 Thread Casey West
It was Monday, November 17, 2003 when Tore Aursand took the soap box, saying: : On Mon, 17 Nov 2003 01:08:46 -0800, perl wrote: : > In any case, I'm wondering if use CGI is the package to use [...] : : Why don't you bother finding out? 'perldoc CGI'. Search for 'upload'. This isn't a proper res

Re: File upload script

2003-11-17 Thread Tore Aursand
On Mon, 17 Nov 2003 01:08:46 -0800, perl wrote: > In any case, I'm wondering if use CGI is the package to use [...] Why don't you bother finding out? 'perldoc CGI'. Search for 'upload'. -- Tore Aursand <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: File upload script

2003-11-17 Thread perl
omeone can recommend? thanks > --As off Sunday, November 16, 2003 5:17 PM -0800, [EMAIL PROTECTED] > is alleged to have said: > >> Can someone point the way to some file upload script for webserver >> on unix/linux? > > --As for the rest, it is mine. > > Sing

Re: File upload script

2003-11-16 Thread Daniel Staal
--As off Sunday, November 16, 2003 5:17 PM -0800, [EMAIL PROTECTED] is alleged to have said: Can someone point the way to some file upload script for webserver on unix/linux? --As for the rest, it is mine. Single file, batch, automated, manual, FTP, RCP, email, SCP, CVS, SFTP, remote, local

File upload script

2003-11-16 Thread perl
Can someone point the way to some file upload script for webserver on unix/linux? thanks - eMail solutions by http://www.swanmail.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem with While condition in file upload

2003-02-10 Thread Rob Dixon
John W. Krahn wrote: > Rob Dixon wrote: >> >> Mike Garner wrote: >>> >>> if ($file) { >>> my @fileparts=split(/\\/,$file); >>> my $file_name=pop(@fileparts); >> >> my $file_name = (split '\', $file)[-1]; > ^^^ > That won't work because you are escaping the final

Re: Problem with While condition in file upload

2003-02-10 Thread John W. Krahn
Rob Dixon wrote: > > Mike Garner wrote: > > > > if ($file) { > > my @fileparts=split(/\\/,$file); > > my $file_name=pop(@fileparts); > > my $file_name = (split '\', $file)[-1]; ^^^ That won't work because you are escaping the final quote. Mike's regex is corr

Re: Problem with While condition in file upload

2003-02-10 Thread Rob Dixon
Hi Mike. Mike Garner wrote: > Hello all- > I'm trying to write a script that will upload a file from a web page > and store that file on the web server. I've snipped out the piece of > code below that's supposed to do this for me. This is running under > use CGI ':standard'; use strict; and use w

Problem with While condition in file upload

2003-02-09 Thread Mike Garner
Hello all- I'm trying to write a script that will upload a file from a web page and store that file on the web server. I've snipped out the piece of code below that's supposed to do this for me. This is running under use CGI ':standard'; use strict; and use warnings without any errors. # $file

RE: file upload to MySql

2002-09-21 Thread John Almberg
delete the file when you delete the record. Hope this helps . . . -- John > -Original Message- > From: Mariusz [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 20, 2002 8:35 PM > To: perl > Subject: file upload to MySql > > > I need to upload a file to a databa

Re: file upload to MySql ??

2002-09-21 Thread Mariusz
db) to my visitors... how can I accomplish that? do I have to upload their file first to the host and then to my db? thanks M - Original Message - From: "Priss" <[EMAIL PROTECTED]> To: "perl" <[EMAIL PROTECTED]> Sent: Saturday, September 21, 2002 3:02 AM Subject:

Re: file upload to MySql

2002-09-21 Thread Priss
Sorry, a bit messy... use DBI; $dbh = DBI->connect("DBI:mysql:database=mydatabase;host=localhost", "user", "password", {'RaiseError' => 1}); $sth = $dbh->prepare("LOAD DATA INFILE '/home/me/file' INTO TABLE mytable FIELDS TERMINATED BY '|'"); $sth->execute(); Priss --- Priss <[EMAIL PROTECTED

Re: file upload to MySql

2002-09-21 Thread Priss
You mean something like this? use DBI; $dbh = DBI->connect("DBI:mysql:database=mydatabase;host=localhost", "user", "password", {'RaiseError' => 1}); $sth = $dbh->prepare("LOAD DATA INFILE '/home/me/file' INTO TABLE mytable FIELDS TERMINATE D BY '|'"); $sth->execute(); Priss --- Mariusz <[EMA

file upload to MySql

2002-09-20 Thread Mariusz
I need to upload a file to a database. Could someone tell me how to do it? I know how to insert values into a table and upload files to a directory but how to combine the two correctly so the file gets uploaded to my MySql DB and I don't get any errors. A part of a script that does that would b

Re: FIle upload

2002-05-20 Thread Chris Ball
>>>>> "arran" == arran ubels writes: arran> I cant get a sucessfull file upload in ActivePerl i have arran> tried many ways,,, can someone send me a sucessfull example? First up, I really hate your sig. ;-) Second, use CGI::Upload from the CPAN.

RE: FIle upload

2002-05-20 Thread John Edwards
PROTECTED]] Sent: 20 May 2002 12:56 To: Perl Beginners List Subject: FIle upload I cant get a sucessfull file upload in ActivePerl i have tried many ways,,, can someone send me a sucessfull example? --Confidentiality--. This E-mail is confidential

FIle upload

2002-05-20 Thread Arran
I cant get a sucessfull file upload in ActivePerl i have tried many ways,,, can someone send me a sucessfull example? From: Arran === It is obvious: The only program that parses Perl is perl, and to really be Perl you also have to be perl. The easiest way to turn Perl code into an