[Workbench] Support more filetypes for in-browser display
We should offer the option for in-browser display for more filetypes including: .cwl, .yaml, .csv, .tsv, .vcf, and .bed.
Some of these can be large, but the user can click the Back button and abort the display if they accidentally start downloading a file which is too big.
#3 Updated by Radhika Chippada almost 2 years ago
- Story points changed from 1.0 to 0.5
Branch 11995-collecion-filetypes @ be0830dcdc10ff352d89a20fa2a24000a5ca8984
- The file types .yaml, .csv, .tsv, .vcf can already be previewed. The preview of these files behaves as browser supports it. That is: in Chrome this is doing a download and in Firefox the file is displayed
- Added .bed and .cwl to supported preview enabled file types
- The file type .cwl is not in ruby MIME::Types and I added special handling to enable preview for this. However, this may not be a known mime type to the browser and hence how the preview works depends on the browser. In Chrome, the file is downloaded. In Firefox, I get a dialog asking to save the file.