[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev <INPUT TYPE="file" ...
From: |
Rob Partington |
Subject: |
Re: lynx-dev <INPUT TYPE="file" ... |
Date: |
Wed, 02 Dec 1998 10:08:21 +0000 |
In message <address@hidden>,
Philip Webb writes:
> 981201 Rob Partington wrote, sighing at me:
> > 981130 Tom Hall wrote:
> >> Does anyone know when TYPE="file" is planned to be supported in lynx ?
> > Does anyone read my mails to the list? I've already *done* this.
> > I've already explained the problems with it as well. Look in the archives
> > for mails with a subject line containing ENCTYPE,
> > & you'll find my explanation of why it currently doesn't work as expected.
> -- repeat explanation snipped --
>
> (big smile & i hope the weather isn't too bad in Newcastle at the moment)
It's foggy. It was foggy yesterday as well. Other than that, it's
quite pleasant for me. It's about 6degC outside and the air is clear,
which is perfect weather for me.
> this really isn't very fair to either of us:
Guess not. Sorry. :-/
> Mr Hall inquired about TYPE="file" , form submissions & attachments.
> ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^
> your messages 981101-3 had Subject ENCTYPE="multipart/formdata"
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> & discussed form-based file-uploading , Content-Transfer-Encode ,
> ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^
> & the relations of RFC 7-bit & CTE headers .
> ^^^ ^^^^^ ^^^^^^^^^^^
> i'm well aware of the wide gaps in my own knowledge,
> but how many lynx-devers could tell you if these topics had ANY relationship?
> AFAIK what you discussed last month is quite different from Mr Hall's problem
> :
Ah. They're not, I don't think. I think they're the same. :-)
> could you try to enlighten us about how your labors might have helped him?
<p class=enlighten>
Form based file-uploading and multipart/formdata === TYPE="file"[1].
They are one and the same thing. As far as I know. :-p
</p>
I assumed people who needed the feature would know what I was talking
about, or at least that "form-based file-uploading" === "type='file'".
Mea Culpa. I guess other people don't read RFC's when they get bored
at work, no?
[1] Although, I think you can use multipart/formdata for other things
as well. I haven't checked thoroughly.
--snippet of example script from CGI.pm--
print h1("File Upload Example"),
'This example demonstrates how to prompt the remote user to
select a remote file for uploading. ',
strong("This feature only works with Netscape 2.0 browsers."),
p,
'Select the ',cite('browser'),' button to choose a text file
to upload. When you press the submit button, this script
will count the number of lines, words, and characters in
the file.';
@types = ('count lines','count words','count characters');
# Start a multipart form.
print start_multipart_form(), # ENCTYPE="multipart/formdata"
"Enter your name:",
textfield('name','',45),
br,
"Enter the file to process:",
filefield('filename','',45), # <input type="file">
br,
checkbox_group('count',address@hidden,address@hidden),
p,
reset,submit('submit','Process File'),
endform;