You are here

README.txt in File (Field) Paths 6.2

Same filename and directory in other branches
  1. 5 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:
  * FileField module.
  * ImageField module.
  * ImageField Crop 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).
* Improved trash cleanup - removes all temporary and empty FileField Paths
  directories on Cron.


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

* CCK               - http://drupal.org/project/cck
* 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 'Page settings >
  FileField Path settings'.
  http://[www.yoursite.com/path/to/drupal]/admin/content/node-type/[node-type]/fields/[field-name]


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. * FileField module.
  15. * ImageField module.
  16. * ImageField Crop module.
  17. * File path and filename cleanup options:
  18. * Filter out words and punctuation by taking advantage of the Pathauto module.
  19. * Convert unicode characters into US-ASCII with the Transliteration module.
  20. * Automatically updates unprocessed file paths in the node body on save.
  21. * Retroactive updates - rename and/or move previously uploaded files (Use with
  22. caution).
  23. * Improved trash cleanup - removes all temporary and empty FileField Paths
  24. directories on Cron.
  25. Required Modules
  26. --------------------------
  27. * CCK - http://drupal.org/project/cck
  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 'Page settings >
  41. FileField Path settings'.
  42. http://[www.yoursite.com/path/to/drupal]/admin/content/node-type/[node-type]/fields/[field-name]
  43. Frequently Asked Questions
  44. --------------------------
  45. Q. Aren't tokens already supported in the FileField module?
  46. A. Only User tokens are supported in the FileField module.
  47. Node tokens allow you to use the Node ID, Node Title, Node creation date and
  48. much more in your directory/filenames where User tokens are very limited.
  49. Q. Why are my files uploaded to 'files/[nid]' instead of 'files/1'?
  50. A. When you are creating or updating a node the full values for the Node tokens
  51. may not yet be known by Drupal, so the FileField Paths module will upload
  52. your files to a temporary path based on your filepath pattern ('files/[nid]')
  53. and then once you save the node and Drupal is provided with the Node tokens
  54. values the file will be moved to the appropriate location.
  55. Q. Why is there a warning on the 'Retroactive updates' feature?
  56. A. Retroactive updates will go through every single node of the particular
  57. content type and move and/or rename the files.
  58. While there have been no reports of errors caused by the feature, it is quite
  59. possible that the moving/renaming of these files could break links. It is
  60. strongly advised that you only use this functionality on your developmental
  61. servers so that you can make sure not to introduce any linking issues.