general03 / flask-autoindex

Generates index page like mod_autoindex
https://flask-autoindex.readthedocs.io
MIT License
112 stars 35 forks source link

Is it possible to set action for specific file extension? #50

Closed bhtsai closed 4 years ago

bhtsai commented 4 years ago

First, thank you for this amazing Flask extension.

I have one problem about clicking file with .config extension, it will show this error: image

I am wondering if it is possible to treat it as txt and then open with browser.

thank you.

general03 commented 4 years ago

Hello, Thanks to this congratulation. I tried to reproduce this issue without success,

Can you give me your repo link or more explanation to reproduce ?

Thanks

general03 commented 4 years ago

Without answer I close this issue