in reply to Re: Re: cgi-perl
in thread cgi-perl

So you have the following steps:
  1. get a file from a submitter
  2. send that file to another server
About 1: I assume you already use Apache::Request to get the file into a temporary directory.

So that leaves 2: the problem of sending the file to that other server. Is that other server also running a webserver? Or an FTP-server? Or what?

If the other server is a web-server, why don't you post the result of your form there so that the file is stored there immediately?

If that is not possible, and it is running a web-server that allows file uploads, the LWP::UserAgent should do the trik for you. If the other server is an FTP-server, then I guess Net::FTP would be something to look at.

Hope this helps. Still not 100% sure what you're trying to do.

Liz

Replies are listed 'Best First'.
Re: Re: Re: Re: cgi-perl
by tja_ariani (Acolyte) on Aug 13, 2003 at 06:54 UTC
    Hi, thanks a lot for ur help. But I'm still confused of which module should I start first from whether 1 or 2 first, and how to "trigger another script". Could you tell me some of the simple uploadscripts available? so that I can learn and build based on that