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

quicksketch’s picture

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.

anrikun’s picture

Project: FileField » File (Field) Paths
Version: 6.x-3.1 » 6.x-1.3

Alright, let's try FileField Path then.

deciphered’s picture

I'm assuming you're using the non-raw version of the token?
Try using the 'raw' version, should fix the problem.

Cheers,
Deciphered.

anrikun’s picture

Status: Active » Closed (fixed)

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

j0nathan’s picture

Version: 6.x-1.3 » 6.x-1.4
Status: Closed (fixed) » Active

Hi,
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?

pomliane’s picture

Status: Active » Closed (fixed)

Hi 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