Changes between Version 24 and Version 25 of DownloadsPlugin
- Timestamp:
- Mar 11, 2015, 10:56:58 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DownloadsPlugin
v24 v25 1 1 [[PageOutline(2-5, Contents, pullout)]] 2 2 3 = !DownloadPlugin 4 5 Adds a downloads section to the Trac system. 3 = !DownloadsPlugin adds a downloads section to Trac 6 4 7 5 == Description … … 31 29 == Installation 32 30 33 After installing plugin's egg you can set up few configuration variables in {{{trac.ini}}}. Their default values are displayed bellow:31 After installing plugin's egg you can set up few configuration variables in {{{trac.ini}}}. Their default values are: 34 32 35 33 {{{#!ini … … 51 49 Variable {{{title}}} sets text of main navigation bar button. {{{path}}} is location where uploaded downloads are stored. It has to be accessible for writing to web server. Setting {{{ext}}} variable restricts allowed extensions of uploaded files. If {{{unique_filename}}} is enabled, plugin checks if file name of download file is not already occupied by any other download file. {{{visible_fields}}} variable controls appearance of downloads table columns in Downloads section. Finally, {{{consoleadmin_user}}} option serves for permission checks when listing, adding or removing downlads using {{{trac-admin}}}. This option is available only in 0.12 branch. Another option available only in 0.12 branch is {{{additional_tags}}} that configures from which fields should be also generated download tags. 52 50 53 '''Note:''' Don't miss that {{{ext}}} and {{{visible_fields}}} options haschanged to comma separated lists in 0.12 branch of the plugin.51 '''Note:''' {{{ext}}} and {{{visible_fields}}} options have changed to comma separated lists in 0.12 branch of the plugin. 54 52 55 If you run Trac in environment which needs to enable plugins explicitlyput in {{{trac.ini}}} these lines:53 If you run Trac in an environment which needs to enable plugins explicitly, put in {{{trac.ini}}} these lines: 56 54 57 55 {{{#!ini … … 71 69 In 0.12 branch, the {{{DownloadsCore}}} component was splited into the {{{DownloadsDownloads}}} component, which handles Downloads section of Trac, and the {{{DownloadsCore}}} component that serves file download requests and other core features. This means that you can disable the {{{DownloadsDownloads}}} component to hide Downloads section from users. {{{admin}}} module was renamed to {{{consoleadmin}}}. 72 70 73 The next step is to upgrade your environment:71 The next step is to upgrade your Trac environment: 74 72 75 73 {{{#!sh … … 77 75 }}} 78 76 79 '''Note:''' Some environments might not handle download of large files gracefully. Notably the fcgi wrapper may timeout. A possible work around, that also adds HTTP "Range:" header support is telling Trac to use "X-Sendfile" (which may require configuration of your HTTP server as well):77 '''Note:''' Some environments might not handle download of large files gracefully. Notably the fcgi wrapper may timeout. A possible work around, that also adds HTTP "Range:" header support, is telling Trac to use "X-Sendfile". This may require configuration of your HTTP server as well: 80 78 {{{#!ini 81 79 [trac] … … 142 140 [[ChangeLog(downloadsplugin, 3)]] 143 141 144 == Author/Contributors ==142 == Author/Contributors 145 143 146 144 '''Author:''' [wiki:Blackhex] [[BR]]