1
HTML & templates / How to run some html script when clicking on some file
« on: March 31, 2023, 06:20:45 PM »
Hi, how to run some html script when clicking on some file instead of handled by the browser itself ?
I mean, the default is: When I put MIME n click on a .mp4 file, then browser will open the file only in the browser.
I need to run .mp4 with subtitle support, but it's not a good idea to put index.html in every folder to do that.
I think maybe something can be done in template file so I can put html codes in there to handle .mp4 files.
Im using 2.4rc7. Thanks before.
I mean, the default is: When I put MIME n click on a .mp4 file, then browser will open the file only in the browser.
I need to run .mp4 with subtitle support, but it's not a good idea to put index.html in every folder to do that.
I think maybe something can be done in template file so I can put html codes in there to handle .mp4 files.
Im using 2.4rc7. Thanks before.