Closed (won't fix)
Project:
File (Field) Paths
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2010 at 09:47 UTC
Updated:
11 Aug 2015 at 20:30 UTC
Jump to comment: Most recent
Comments
Comment #1
sgabe commentedI just encountered the same problem but with 6.x-1.4. The module doesn't remove the slash from the the [#termpath] where the term looks like "Blabla / blaba". So it builds a directory structure like
sites/default/files/blabla_/_blabla/blabla.jpg. Any advice would be appreciated.Comment #2
bensquare commentedDid you try to add the code as stated by Daemon_Byte ? cos it solves exactly the problem u mentioned
Also, I want to say thx you to the person who makes this module. The files & pictures are finally in good order based on nid instead of all going to one directory.
Ben
Comment #3
dunx commentedThe above fix is specifically for filename, not filepath and won't work in that circumstance.
The issue is with pathauto, not filefield_paths.
The reason pathauto doesn't do what you expect it to do is because the string for termpath-raw could be something like "Event/Ski/Snowboard Event", where the term is "Ski/Snowboard Event". You want the path to be something like "event/skisnowboard-event", but the pathauto_clean_token_values doesn't know where to start converting the "/", so at the moment it just skips doing anything to termpath-raw and leaves it as is.
filefield_paths itself converts it to lower case though, so you'll get "event/ski/snowboard event".
My recommendation is to use just [term-raw], which will give you "skisnowboard-event" at least.
Or perhaps [term-raw][term-id] if you have multiple terms of the same name that sit in different parts of the taxonomy tree.
Comment #4
decipheredNo longer supporting Drupal 6 issues for this module.