rejetto forum

Software => HFS ~ HTTP File Server => Bug reports => Topic started by: hanshenrik on June 24, 2021, 05:51:32 PM

Title: file-extension-based-content-type ?
Post by: hanshenrik on June 24, 2021, 05:51:32 PM
(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.
Title: Re: file-extension-based-content-type ?
Post by: NaitLee on June 25, 2021, 05:51:27 AM
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
Title: Re: file-extension-based-content-type ?
Post by: hanshenrik on June 25, 2021, 06:11:45 AM
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?)