Streaming contents

Discussions

TSS feedback: Streaming contents

  1. Streaming contents (1 messages)

    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.

    Threaded Messages (1)

  2. Streaming contents[ Go to top ]

    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