Cleaning FileField Path and Filename: single quotes are replaced by 039
anrikun - August 7, 2009 - 16:31
| Project: | FileField Paths |
| Version: | 6.x-1.3 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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.

#1
This 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.
#2
Alright, let's try FileField Path then.
#3
I'm assuming you're using the non-raw version of the token?
Try using the 'raw' version, should fix the problem.
Cheers,
Deciphered.
#4
Ooops,
You are absolutely right!
Stupid mistake I made :-)
Thanks!