in reply to Re^3: perl program for importing files on local system
in thread perl program for importing files on local system

Hi Martin, thanks for ur replies,i think i am not able to describe the reqs properly,let me try once again suppose user has got access to some CMS through URL,he is working on it ,now he wants to import a file from his local system into the "cms" in which he is working ,(there is no network transfer stuff involved here ,we are already connected to network through VPN),i have developed a button ,if we click the perl program is called now only program is that when that perl program executes "some thing"(i dont no wit) should happen through which user is able to transfer files (just as he would do on his WINDOWS LOCAL MACHINE),hope i am able to describe this time nyways thanks to all the ppl for replying ,i am also trying from end to solve this issue regards, rahul
  • Comment on Re^4: perl program for importing files on local system

Replies are listed 'Best First'.
Re^5: perl program for importing files on local system
by marto (Cardinal) on Jan 28, 2009 at 17:02 UTC

    rahulgsp83,

    You need to display an HTML form with a file input element, this will allow the user to select a file from their local machine. On the server you need to have a script to accept the form input, and upload the file.

    Look again at the sample html form, and the perl script which processes the form and uploads the file in Re: I need a simple web upload script. (forget about the email section of this example, it's not required for what you are trying to do).

    Martin

Re^5: perl program for importing files on local system
by Zen (Deacon) on Jan 28, 2009 at 21:27 UTC
    Bear in mind that your cms is what executes the perl script, *not* the user, in the scenario you described. Hence, the user uploads some file to the server, the server does something cool, then the web page with the response is displayed on the user's browser.