You can pick up the file from

http://www.trsvax.com/form.txt

replace the modules/tcl/form.tcl and restart the server. It works but there
are a few thing that need to be done.

1. NT writes all the temp files on d: I think this could be changed by
adding a path name in front of [ns_tmpnam]
2. I think it could be faster. I thought file upload would be no problem and
ending up hacking on this file about an hour before a site launch. I havn't
revisited it since.

barry

----- Original Message -----
From: "Franclim Félix Bento" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 09, 2001 6:18 AM
Subject: Re: [AOLSERVER] Retrieving files from form's...


> Hi,
>
> Well that must be the problem. I'm on 2000 Server...
>
> It would be nice if you could send me by email.
>
> Thank you VERY much...
>
> Frank
>
>
> -----Original Message-----
> From: AOLserver Discussion [mailto:[EMAIL PROTECTED]]On Behalf Of
> Barry Books
> Sent: segunda-feira, 9 de Abril de 2001 12:11
> To: [EMAIL PROTECTED]
> Subject: Re: [AOLSERVER] Retrieving files from form's...
>
>
> I had this problem on NT. If you remove enctype=multipart/form-data you
get
> the fields but no file. I had to rewrite the file upload code to work on
NT.
> It's currently pretty ugly and slow but it works. I'll post it somewhere
if
> you need it
>
> barry
>
> ----- Original Message -----
> From: "Damian Czupryn" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, April 09, 2001 5:13 AM
> Subject: Re: [AOLSERVER] Retrieving files from form's...
>
>
> > Franclim Félix Bento wrote:
> > >
> > > Hello,
> > >
> > > First of all, thank you for your help.
> > > But I still have a problem. When I use ns_getform to get the form, I
> don't
> > > have any fields on the set. I think this is because of the
> > > "enctype='multipart/form-data'".
> > > If I use this enctype in any form, no matter the kind of fields in it,
I
> > > can't retrieve the content of that form. If I use "ns_conn form"
> instead, to
> > > retrieve a form with an input type='file', I get just one field with a
> very
> > > strange name/value...
> > > I wonder if any one could help me solving this problem.
> > >
> > > Thanks once more.
> > > Frank
> > > -----Original Message-----
> > > From: AOLserver Discussion [mailto:[EMAIL PROTECTED]]On
Behalf
> > > Of Tuncay Baskan
> > > Sent: quinta-feira, 5 de Abril de 2001 15:59
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [AOLSERVER] Retrieving files from form's...
> > >
> > > Hi,
> > > <form enctype='multipart/form-data' method=POST>
> > >   <input type=file name=img1>
> > >   <input type=file name=img2>
> > > </form>
> > > When you do a ns_getform in your handler, form set should have the
> > > following keys:
> > > img1.content-type
> > > img1.tmpfile
> > > img2.content-type
> > > img2.tmpfile
> > > You can get them with "ns_set get" command.
> > > On 2001.04.05 17:02:50 +0300 Franclim Félix Bento wrote:
> > > > Hi,
> > > >
> > > > I've one doubt (not realy just one but for now :-)...
> > > > When I want to retrieve a file content posted in a form with more
than
> > > > just
> > > > one input field of the type "file", what should I do ?
> > > >
> > > > Thanks
> > > >
> > > --
> > > Tuncay Baskan.
> > > IT Manager @ Paramedya.com
> >
> > Hi,
> >
> > You may use "ns_queryget" instead of "ns_getform":
> >
> > Example:
> > -- set channel_id [open [ns_queryget "img1.tmpfile"]]
> > -- set what_user_has_uploaded [read $channel_id]
> > -- close $channel_id
> >
> >         Regards,
> >         Damian Czupryn.
> >
>

Reply via email to