You are here

README.txt in File (Field) Paths 5

Same filename and directory in other branches
  1. 6.2 README.txt
  2. 6 README.txt
The FileField Paths module extends the default functionality of Drupals core
Upload module, the FileField module and many other File Upload modules by adding
the ability to use node tokens in destination paths and filenames.

In simple terms, FileField Paths allows you to automatically sort and rename
your uploaded files using token based replacement patterns to maintain a nice
clean filesystem.

FileField Paths was written and is maintained by Stuart Clark (deciphered).
- http://stuar.tc/lark


Features
--------------------------

* Configurable file paths now use node tokens instead of user tokens.
* Configurable filenames.
* Support for:
  * Drupal core Upload module.
  * FileField module.
  * ImageField module.
  * ImageField Crop module.
  * Image module.
  * Comment Upload module.
* File path and filename cleanup options:
  * Filter out words and punctuation by taking advantage of the Pathauto module.
  * Convert unicode characters into US-ASCII with the Transliteration module.
* Automatically updates unprocessed file paths in the node body on save.
* Retroactive updates - rename and/or move previously uploaded files (Use with
  caution)


Required Modules
--------------------------

* Token             - http://drupal.org/project/token


Recommended Modules
--------------------------

* ImageField Tokens - http://drupal.org/project/imagefield_tokens
* File Aliases      - http://drupal.org/project/file_aliases
* Pathauto          - http://drupal.org/project/pathauto
* Transliteration   - http://drupal.org/project/transliteration


Usage/Configuration
--------------------------

Once installed, FileField Paths needs to be configured for each file type you
wish to use.

* FileField/ImageField module

  Settings can be found on the fields configuration page in 'Widget settings >
  FileField Path settings'.
  http://[www.yoursite.com/path/to/drupal]/admin/content/types/[node-type]/fields/[field-name] 


* Upload module

  Settings can be found on the content types configuration page in 'Workflow >
  Upload Path settings'.
  http://[www.yoursite.com/path/to/drupal]/admin/content/types/[node-type]


* Image module

  Settings can be found on the Images configuration page in 'Image Path
  settings'.
  http://[www.yoursite.com/path/to/drupal]/admin/settings/image


* Comment Upload module

  Settings can be found on the content types configuration page in 'Workflow >
  Comment Upload Path settings'.
  http://[www.yoursite.com/path/to/drupal]/admin/content/types/[node-type]


Frequently Asked Questions
--------------------------

Q. Aren't tokens already supported in the FileField module?

A. Only User tokens are supported in the FileField module.

   Node tokens allow you to use the Node ID, Node Title, Node creation date and
   much more in your directory/filenames where User tokens are very limited.


Q. Why are my files uploaded to 'files/[nid]' instead of 'files/1'?

A. When you are creating or updating a node the full values for the Node tokens
   may not yet be known by Drupal, so the FileField Paths module will upload
   your files to a temporary path based on your filepath pattern ('files/[nid]')
   and then once you save the node and Drupal is provided with the Node tokens
   values the file will be moved to the appropriate location.


Q. Why is there a warning on the 'Retroactive updates' feature?

A. Retroactive updates will go through every single node of the particular
   content type and move and/or rename the files.

   While there have been no reports of errors caused by the feature, it is quite
   possible that the moving/renaming of these files could break links. It is
   strongly advised that you only use this functionality on your developmental
   servers so that you can make sure not to introduce any linking issues.

File

README.txt
View source
  1. The FileField Paths module extends the default functionality of Drupals core
  2. Upload module, the FileField module and many other File Upload modules by adding
  3. the ability to use node tokens in destination paths and filenames.
  4. In simple terms, FileField Paths allows you to automatically sort and rename
  5. your uploaded files using token based replacement patterns to maintain a nice
  6. clean filesystem.
  7. FileField Paths was written and is maintained by Stuart Clark (deciphered).
  8. - http://stuar.tc/lark
  9. Features
  10. --------------------------
  11. * Configurable file paths now use node tokens instead of user tokens.
  12. * Configurable filenames.
  13. * Support for:
  14. * Drupal core Upload module.
  15. * FileField module.
  16. * ImageField module.
  17. * ImageField Crop module.
  18. * Image module.
  19. * Comment Upload module.
  20. * File path and filename cleanup options:
  21. * Filter out words and punctuation by taking advantage of the Pathauto module.
  22. * Convert unicode characters into US-ASCII with the Transliteration module.
  23. * Automatically updates unprocessed file paths in the node body on save.
  24. * Retroactive updates - rename and/or move previously uploaded files (Use with
  25. caution)
  26. Required Modules
  27. --------------------------
  28. * Token - http://drupal.org/project/token
  29. Recommended Modules
  30. --------------------------
  31. * ImageField Tokens - http://drupal.org/project/imagefield_tokens
  32. * File Aliases - http://drupal.org/project/file_aliases
  33. * Pathauto - http://drupal.org/project/pathauto
  34. * Transliteration - http://drupal.org/project/transliteration
  35. Usage/Configuration
  36. --------------------------
  37. Once installed, FileField Paths needs to be configured for each file type you
  38. wish to use.
  39. * FileField/ImageField module
  40. Settings can be found on the fields configuration page in 'Widget settings >
  41. FileField Path settings'.
  42. http://[www.yoursite.com/path/to/drupal]/admin/content/types/[node-type]/fields/[field-name]
  43. * Upload module
  44. Settings can be found on the content types configuration page in 'Workflow >
  45. Upload Path settings'.
  46. http://[www.yoursite.com/path/to/drupal]/admin/content/types/[node-type]
  47. * Image module
  48. Settings can be found on the Images configuration page in 'Image Path
  49. settings'.
  50. http://[www.yoursite.com/path/to/drupal]/admin/settings/image
  51. * Comment Upload module
  52. Settings can be found on the content types configuration page in 'Workflow >
  53. Comment Upload Path settings'.
  54. http://[www.yoursite.com/path/to/drupal]/admin/content/types/[node-type]
  55. Frequently Asked Questions
  56. --------------------------
  57. Q. Aren't tokens already supported in the FileField module?
  58. A. Only User tokens are supported in the FileField module.
  59. Node tokens allow you to use the Node ID, Node Title, Node creation date and
  60. much more in your directory/filenames where User tokens are very limited.
  61. Q. Why are my files uploaded to 'files/[nid]' instead of 'files/1'?
  62. A. When you are creating or updating a node the full values for the Node tokens
  63. may not yet be known by Drupal, so the FileField Paths module will upload
  64. your files to a temporary path based on your filepath pattern ('files/[nid]')
  65. and then once you save the node and Drupal is provided with the Node tokens
  66. values the file will be moved to the appropriate location.
  67. Q. Why is there a warning on the 'Retroactive updates' feature?
  68. A. Retroactive updates will go through every single node of the particular
  69. content type and move and/or rename the files.
  70. While there have been no reports of errors caused by the feature, it is quite
  71. possible that the moving/renaming of these files could break links. It is
  72. strongly advised that you only use this functionality on your developmental
  73. servers so that you can make sure not to introduce any linking issues.