History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: FC-964
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Chris Roth
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FarCry Core Framework

Bring back the dash... formtools file type and cleanfilename

Created: 26/Sep/07 09:21 AM   Updated: 13/Aug/08 11:30 AM
Component/s: Formtools
Affects Version/s: 4.0.8
Fix Version/s: 5.0.2

Time Tracking:
Not Specified


 Description  « Hide
Somewhere along the way the formtools file type started "cleaning" file names, which removes dashes and underscores. I my self would like to see those come back as I have just finished training people to stop using spaces and other crap in file names and use only - and _. We have large amounts of files on shares that use - and _ and its a bummer to rename them. but maybe its just me.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Geoff Bowers - 12/Aug/08 10:27 AM
This is just a nit-pik that maybe only I have.

ft:file replaces all non alpha-numeric characters in the file to be
uploaded.

core/packages/formtools/file.cfc on or about line: 228 (latest from
svn)

<cfset cleanFileName = reReplaceNoCase(newFileName, "[^a-z0-9.]", "",
"all") />

I'd like to see the core allow "-" and "_" in file names.

<cfset cleanFileName = reReplaceNoCase(newFileName, "[^a-z0-9.\-\_]",
"", "all") />