D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Perl CGI question - stumped

 

> On 16/12/05, Steve Marvell <steve@xxxxxxxxxxxxxx> wrote:
>> mike@xxxxxxxxxxxxx wrote:
>>
>> > Does anyone know how to get the full path from a filefield in CGI
>>
>> There is no reason to expect that data to come at all since the
>> original location of the file is nothing to do with the transaction
>> nothing to do with the query.
>>
>> I imagine it's possible to extract the information from the field with
>> javascript and put it in a hidden field before the transaction is
>> posted.
>
> Some versions of IE will provide the full path in the filename, which
> is annoying.
>
> You should never need it on the server so I usually strip it out if
> present. Why do you want this path - what will it be used for?
>
> A.


Processing the file locally (apache running on localhost). Without the
full path I cant run ny commands on the file.

>
> --
> The Mailing List for the Devon & Cornwall LUG
> Mail majordomo@xxxxxxxxxxxxx with "unsubscribe list" in the
> message body to unsubscribe. FAQ:
> www.dcglug.org.uk/linux_adm/list-faq.html
>


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe. FAQ: www.dcglug.org.uk/linux_adm/list-faq.html