rejetto forum

file-extension-based-content-type ?

0 Members and 1 Guest are viewing this topic.

Offline hanshenrik

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
(didn't know where to post feature requests, if this is the wrong place, please let me know the correct place)

would be really nice if we could set content-type headers for file extensions somewhere,

very specifically, i want .mp4 files to be served with the header
Content-Type: video/mp4
not
Content-Type: application/octet-stream

this would allow me to stream mp4 files directly in my web browser, instead of having browsers download the video.


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 164
  • Computer brained boy
    • View Profile
    • A Normal Webpage
This is already built-in :)
In HFS: Enter Expert mode, Menu - Other options - MIME types..., add a row and fill with | *.mp4 | video/mp4 |

Also, I think feature request is not a bug... :D If no child board fits needs, post on general HFS board
Check out my template and PHFS ;)


Offline hanshenrik

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
This is already built-in :)
In HFS: Enter Expert mode, Menu - Other options - MIME types..., add a row and fill with | *.mp4 | video/mp4 |

Also, I think feature request is not a bug... :D If no child board fits needs, post on general HFS board

oh thanks, found it. and thanks, will do next time. (hope some moderator can move it?)