blowupp has asked for the wisdom of the Perl Monks concerning the following question:

I come before the Monks with my supplication:

To process some video files on my server via a webform, the full source file path must be passed as a variable to perl, ie: /Volumes/BigDisk/Playouts/2010/JBV_fountain_PLAYOUT/Fountain_Master.mov

In modern browsers the file path truncates to filename only and It seems that making the user copy & paste into web form is the only method.
Is there any way to pass the the full source file path to perl?

This is where I am currently:

<c> <form action="encode.pl" method="post"> 1. Choose file to encode: <input type="file" id="browse" name="browse" onchange="handleFiles(this.files)" />
2. Copy and paste the file path <input type="text" name="remote_file_path" /> 3. <input type="hidden" name="filepath" id="filepath" value=" "> 4. <input type="submit" value="Go" onclick="document.getElementById('filepath').value=document.getElementById('browse').value" /> </form> </ c>

Replies are listed 'Best First'.
Re: path to local file as a variable
by choroba (Cardinal) on Jun 22, 2010 at 12:33 UTC
    There is no way how to get the full path. It would be considered a vulnerability if there were. Sounds a bit like XY problem - why do you need the full path?
      Thanks,
      I want the full path to pass as a command line argument to a bash script that processes the large files that are already on my server.
        Where will the bash script run? On the server? Then you do not need the local path anymore, you need the server path. Or do I miss something?