Hi,
I need to stream contents (msword and excel). Should I use the content-type: application/msword and application/excel?
When I accept files for upload, how do I advise the browser only to accept ms-word and excel documents? thanks.
-
Streaming contents (1 messages)
- Posted by: Digit Sequence
- Posted on: November 01 2001 02:50 EST
Threaded Messages (1)
- Streaming contents by Brian Ewins on November 10 2001 13:18 EST
-
Streaming contents[ Go to top ]
- Posted by: Brian Ewins
- Posted on: November 10 2001 13:18 EST
- in response to Digit Sequence
Excel is application/vnd.ms-excel . The official registry of mime types is here: http://www.isi.edu/in-notes/iana/assignments/media-types/media-types
The feature you're looking for to constrain upload types is the 'accept' attribute of the 'form' element, as explained in the standard here:
http://www.w3.org/TR/html401/interact/forms.html#adef-accept
HTH, Baz