This RFC came out as RFC 1867: "Form-based File Upload in HTML" .
( URL: http://www.rasip.fer.hr/cgi-bin/rfc/rfc1867.txt )
It's not quite obvious why there shouldn't be some more input types for
forms (of course it is not elegant to clutter browsers with hundreds of types),
like e.g.
<INPUT TYPE="audio" ACCEPT="audio/basic">
<INPUT TYPE="video" ACCEPT="video/mpeg">
which should be handled differently by their nature than plain files.
Of course, this could be implied by <INPUT TYPE=file ACCEPT="audio/basic">,
but this would open a file browser with filter "*.au" for browsing for the
audio record.
What INPUT TYPE "audio" could bring is posibility to record audio immediatelly
from hardware audio device, with a "microphone" button. Then we could play it
to see how it sounds, browse for audio file instead, save recording and
finaly press submit.
Sending mechanism proposed in RFC 1867 could be respected without changes;
setting apropriate MIME type/subtype.
Example:
------------------------------------------------------------------------------
<FORM ACTION="/cgi-bin/process-registration"
METHOD=POST ENCTYPE="multipart/form-data">
Please enter your userid: <INPUT TYPE="text"><BR>
Please enter your password: <INPUT TYPE="password"><BR>
Enter your voice signature: <INPUT TYPE="audio"
ACCEPT="audio/basic, audio/adpcm, audio/*"><BR>
<INPUT TYPE="submit"><BR>
</FORM>
------------------------------------------------------------------------------
Which could be rendered as:
------------------------------------------------------------------------------
Please enter your userid: ___________________
Please enter your password: ___________________
Enter your voice signature:
___________________________________________
/ \
| [Record] [Rewind] [PLAY] [Browse] [Save] |
| |
| [#######>######] Playing ... 14sec/30sec |
\___________________________________________/
[Submit Form]
------------------------------------------------------------------------------
-- Mirsad
--
Mirsad Todorovac at Electrical Engineering Faculty, University Zagreb, Croatia
[email protected], [email protected], http://www.rasip.fer.hr/