Hi,
When creating a FileField, I've checked in "File path cleanup settings" and "File name cleanup settings":
- Cleanup using Pathauto.
- Convert to lower case.
- Transliterate.
The problem is that when filename contains a single quote ('), it is replaced by "039" when it should be replaced by Pathauto's separator (-).
Such problem doesn't occur when pathauto aliases node titles so I think it's only related to FileFields.
Comments
Comment #1
quicksketchThis functionality isn't added by FileField, you should try to determine which module (FileField Paths or Transliterate) is causing the problem and transfer the issue there. FileField doesn't provide any of the options you've described.
Comment #2
anrikun commentedAlright, let's try FileField Path then.
Comment #3
decipheredI'm assuming you're using the non-raw version of the token?
Try using the 'raw' version, should fix the problem.
Cheers,
Deciphered.
Comment #4
anrikun commentedOoops,
You are absolutely right!
Stupid mistake I made :-)
Thanks!
Comment #5
j0nathan commentedHi,
I have the same problem with quotes.
I changed from [title] to [title-raw] and it works now for the title. But I cannot find the token -raw for the filefield description, so when I put this, single quotes are replaced by 039:
[title-raw]-[filefield-description].[filefield-extension-original]
Is there any -raw token for the description?
Or how to avoid 039 and other similar replacements?
Comment #6
pomliane commentedHi J0nathan,
Filefield Paths only takes care of paths and file names.
Your issue, which I also encounter, is certainly related to Imagefield Tokens.
This discussion might also be of interest : #559056: Fields with apostrophes not displaying correctly
Comment #7
j0nathan commentedThank you.
I posted there: #926966: Looking for the token [filefield-description-raw] to resolve "single quotes are replaced by 039"