Skip to content

Provides a content type for downloadable files that can optionally be used as JBrowse tracks

License

Notifications You must be signed in to change notification settings

isubit/tripal_downloads

Repository files navigation

tripal_downloads

Provides a content type for downloadable files. Individual downloads can optionally be exposed as JBrowse tracks through Tripal JBrowse API.

Install

Install the module like a normal Drupal module. Then create a .htaccess file in your site's files/download folder with the following:

# This Apache .htaccess file is generated by JBrowse (GenomeDB) for
# allowing cross-origin requests as defined by the Cross-Origin
# Resource Sharing working draft from the W3C
# (http://www.w3.org/TR/cors/).  In order for Apache to pay attention
# to this, it must have mod_headers enabled, and its AllowOverride
# configuration directive must allow FileInfo overrides.
<IfModule mod_headers.c>
    Header onsuccess set Access-Control-Allow-Origin *
    Header onsuccess set Access-Control-Allow-Headers Origin,X-Requested-With,Content-Type,Accept,Range
</IfModule>
# http://gmod.org/wiki/JBrowse_Configuration_Guide#Apache_Configuration_Note
<IfModule mod_mime.c>
    AddType application/octet-stream .bam .bami .bai
</IfModule>

About

Provides a content type for downloadable files that can optionally be used as JBrowse tracks

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages