« Install plugins for Gedit | Main | Bookmark-able searches for Drupal's Biblio module »
April 10, 2012
Incorrect path for CCK FileField
Strange bug that give an uploaded file the incorrect path for a time. To recreate:
1. Upload a file to a node. Will get a path like this:
~/sites/default/files/Snakescope.pdf
2. Save. Path remains:
~/sites/default/files/Snakescope.pdf
3. Now go into Edit mode. The path is now correct:
~/sites/default/files/private/publications/Snakescope.pdf
Related issues on Drupal.org
It is the fault of FileField Paths.
File name replacement pattern does not work anymore (CCK + FileField) but after second saving
Node links to original file path after creation until the node is saved again
Agileware proposes a solution: change the module weights (how? IDK).
Hefox proposes a patch (with rave reviews).
Summary:
Fixed in the dev version of FileField Paths. The stable version is now 2+ years old!!!!!!!!!
Posted by kkwaiser at April 10, 2012 04:33 PM
Comments
I noticed these problems but had no idea how to fix them...Thank you very much for the help provided! London
Posted by: jakejordan160@yahoo.co.uk at May 8, 2012 11:44 AM
Login to leave a comment. Create a new account.