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

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -