You are here

README.txt in File Force Download 7

Same filename and directory in other branches
  1. 6.2 README.txt
  2. 6 README.txt
File Force Download
-------------------

Originally provided by Garrett Albright
Maintained by Martin B. - martin@webscio.net
Supported by JoyGroup - http://www.joygroup.nl


Installation
------------
 * Extract the module archive, copy its contents to your modules directory and activate the module.


Usage - Automatic
-----------------
 * File Force Download offers a number of additional formatters to the supported fields, which can be selected
 either in the "Display Fields" section of your content type or when adding fields to your view.


Usage - Manual
--------------
 * With the "Private" download method enabled on your site in admin/settings/file-system: you can simply use the
 url() & l() functions with an additional item in the options array, e.g. url($image['filepath'], array('query'
 => array('download' => '1'))).

 * With the "Public" download method enabled by default, you will need to make sure that the File Force
 link is going through Drupal by passing it through file_force_create_url() first, e.g. l('linktext',
 file_force_create_url($image['filepath'], FALSE), array('query' => array('download' => '1'))).
 
 * The file_force_create_url method will return an URL with the 'download=1' query appended to it by default.
 This behaviour can be altered by setting its second parameter to FALSE.
 
 * Setting 'download' to '1' will result in download being forced, while setting it to '0' will force the item to 
 be displayed inline.


Supported Modules
-----------------
 * File
 * Image


For more instructions, please see this page in the Drupal manual:
http://drupal.org/node/265424

File

README.txt
View source
  1. File Force Download
  2. -------------------
  3. Originally provided by Garrett Albright
  4. Maintained by Martin B. - martin@webscio.net
  5. Supported by JoyGroup - http://www.joygroup.nl
  6. Installation
  7. ------------
  8. * Extract the module archive, copy its contents to your modules directory and activate the module.
  9. Usage - Automatic
  10. -----------------
  11. * File Force Download offers a number of additional formatters to the supported fields, which can be selected
  12. either in the "Display Fields" section of your content type or when adding fields to your view.
  13. Usage - Manual
  14. --------------
  15. * With the "Private" download method enabled on your site in admin/settings/file-system: you can simply use the
  16. url() & l() functions with an additional item in the options array, e.g. url($image['filepath'], array('query'
  17. => array('download' => '1'))).
  18. * With the "Public" download method enabled by default, you will need to make sure that the File Force
  19. link is going through Drupal by passing it through file_force_create_url() first, e.g. l('linktext',
  20. file_force_create_url($image['filepath'], FALSE), array('query' => array('download' => '1'))).
  21. * The file_force_create_url method will return an URL with the 'download=1' query appended to it by default.
  22. This behaviour can be altered by setting its second parameter to FALSE.
  23. * Setting 'download' to '1' will result in download being forced, while setting it to '0' will force the item to
  24. be displayed inline.
  25. Supported Modules
  26. -----------------
  27. * File
  28. * Image
  29. For more instructions, please see this page in the Drupal manual:
  30. http://drupal.org/node/265424