In a File field definition, when I set the option 'Cleanup using Pathauto' under 'File Paths Options' to TRUE, uploaded files invariably have their file namescleaned in addition to their paths, regardless of the setting for 'Cleanup using Pathauto' under 'File Name Options'. Turning file name cleanup off or on has no impact while file path cleanup is enabled: file names always get cleaned.

Using Drupal 7.21

Steps to reproduce the problem:
1. Create a field of the type File.
2. Set the 'File Paths Options' > 'Cleanup using Pathauto' to TRUE
3. Set the 'File Name Options' > 'Cleanup using Pathauto' to FALSE
4. Create a node and upload a file with spaces in the name
5. Watch the spaces being replaced in the file name after saving the node

EDIT:
The same issue occurs when using the most recent dev version.

Comments

deciphered’s picture

Status: Active » Fixed

Fixed and committed.

Cheers,
Deciphered.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

richsky’s picture

Status: Closed (fixed) » Needs work
Issue tags: +Feeds, +REPLACE

Hi there, not quite sure if this is solved, unfortunately using pathauto clean up (even only with the path and not the file name) with feeds and the option "replace" file, disable the "replace" feature. Though I don't know which is messing, feeds or filefield path... who should be first is it a question of module weight?

please see https://drupal.org/node/1171114

deciphered’s picture

Status: Needs work » Closed (fixed)
Issue tags: -Feeds

This is a different issue, please open a new issue.

deciphered’s picture

Issue summary: View changes

Also tested with dev version and added results