ruby - public folder on redmine doesn't recognize binary files -


i have put binary file (.apk) on redmine/public folder when try download file text version of file text.

how change behavior direct download?

you need navigate httputils.rb file (it's wherever webrick installed) , add line list of mime types:

application/vnd.android.package-archive     apk 

if seems lot of trouble , you're not trying fancy download (e.g. download directly android phone , install it), can wrap in .zip , call day. zip files download automatically.


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -