🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.perl.misc
Article #309

Re: gettin a "file" argument in perl

#309
From: ARNOD-PRIN Samuel
Date: Fri, 28 May 1999 00:00
29 lines
1324 bytes
On Wed, 26 May 1999 14:59:39 +0200, Olivier Maas
<olivier.maas@at-lci.com> wrote:

>Hello,
>I am trying to get a file from a form,
>I use the
><INPUT NAME="FichierATraiter" TYPE="FILE" VALUE="">
>syntax, but when trying to get this file (or file handle?) to a perl
>script for further treatment, but when I use
>$FichAT=CGI::param(FichierATraiter);
>and try to print $FichAT ... nothing
>the same with @FichAT
>
>Any clues, or place to get doc on howto?
>thank for any answer...
>if you could send a copy of your reply to
>maas@ensae.fr, it would be appreciated...
>olivier
>
>
>
>

<form action="yourscript.pl" method=post
ENCTYPE="multipart/form-data">

try to put this first in your html code...

then watch STDIN to see how it comes..
Technical Details
Message-ID: <374e486f.157244438@miage.univ-lyon1.fr>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <374BF03B.578EFA1B@at-lci.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 112333,1a63c8be21674450
X-Google-Attributes: gid112333,public
X-Google-Thread: fa0ae,1a63c8be21674450
X-Google-Attributes: gidfa0ae,public
From: samfra@mygale.org (ARNOD-PRIN Samuel)
Subject: Re: gettin a "file" argument in perl
Date: 1999/05/28
Message-ID: <374e486f.157244438@miage.univ-lyon1.fr>
X-Deja-AN: 483026738
References: <374BF03B.578EFA1B@at-lci.com>
Organization: C.I.S.M.  Universite Claude Bernard Lyon 1 / INSA de Lyon
Newsgroups: comp.lang.perl.misc,fr.comp.lang.perl