Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: General ? re: downloading & uploading files in Perl

by ncw (Friar)
on Sep 22, 2000 at 12:22 UTC ( [id://33619]=note: print w/replies, xml ) Need Help??


in reply to General ? re: downloading & uploading files in Perl

You can upload files using CGI module no trouble - see the CREATING A FILE UPLOAD FIELD section in the documentation.

You would use the webserver and http to download files - just emit an <a href="file.txt"> as usual in your output for the user to click on.

If you want this logged then either look in the web logs or make the cgi return the file eg, <a href="my.cgi?file=file.txt">. Make sure the files aren't directly accessible by the webserver in this case.

CGI doesn't deal with FTP. In fact I suggest you steer clear of FTP - it is hard to set up securely. You can investigate the Net::FTPServer module if you are desperate for FTP.

  • Comment on Re: General ? re: downloading & uploading files in Perl

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://33619]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-18 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found