Input Type File Does Not Display PPS Files

This is my downloadable entry, and no matter what I try, it refuses Powerpoint PPS files.

It displays PDF, PPT, PPTX, PPSX, but not PPS

    <input type="file"
    accept="application/pdf,application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.slideshow,application/vnd.openxmlformats-officedocument.presentationml.presentation"
 name="upldInput"/>

The behavior is the same in all browsers, no one shows PPS files.

+5
source share
2 answers

I can not find a MIME type that works. However, the following works:

<input type="file" accept="application/pdf,.pps" name="upldInput"/>

Apparently you can mix and match file extensions and MIME types. In Chrome 25 and IE 10 (PC), this gives the desired behavior, that is, only mapped types (MIME) or extensions are displayed.

Demo: http://jsfiddle.net/GGFVv/

I also tried to mix several extensions and several MIME types that also work.

<input type="file" 
    accept=".pps,
    .jpg,
    .txt,
    application/pdf,
    application/vnd.ms-powerpoint,
    application/vnd.openxmlformats-officedocument.presentationml.slideshow,
    application/vnd.openxmlformats-officedocument.presentationml.presentation" name="upldInput"/>

: http://jsfiddle.net/GGFVv/2/

, , , Firefox 19. , , W3C WHATWG.

accept ( 1995 !) :

ACCEPT INPUT, , .

Firefox " ", , , ( ).

+3

: : accept=".pps"?

<input type="file"
   accept="application/pdf,
      application/vnd.ms-powerpoint,
      application/vnd.openxmlformats-officedocument.presentationml.slideshow,
      application/vnd.openxmlformats-officedocument.presentationml.presentation,
      .pps"
   name="upldInput"/>
+2

All Articles