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
Comment #1
decipheredFixed and committed.
Cheers,
Deciphered.
Comment #3
richsky commentedHi 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
Comment #4
decipheredThis is a different issue, please open a new issue.
Comment #4.0
decipheredAlso tested with dev version and added results