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
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

quicksketch - August 7, 2009 - 22:02

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

anrikun - August 8, 2009 - 20:59
Project:FileField» FileField Paths
Version:6.x-3.1» 6.x-1.3

Alright, let's try FileField Path then.

#3

Deciphered - August 8, 2009 - 23:54

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

anrikun - August 10, 2009 - 16:24
Status:active» closed

Ooops,
You are absolutely right!
Stupid mistake I made :-)
Thanks!

 
 

Drupal is a registered trademark of Dries Buytaert.