[TYPO3-dam-devel] enable to use cleanFileName but have original filename as indexed title

Krystian Szymukowicz t33k.RE.MO.VE at RE.MO.VE.prolabium.com
Tue Oct 27 11:57:17 CET 2009


hello


This is a SVN patch request.

BRANCHES: trunk

BT reference: http://bugs.typo3.org/view.php?id=12360
BT related: http://bugs.typo3.org/view.php?id=10408

PROBLEM:
Right now if you upload a file with space or special national chars they 
are preserved, fe. "example file name ążół.jpg".

This is a problem sometimes. Not all software works quite well with 
utf-8 filenames so it is more secure to have the national chars and 
spaces get converted to safe ASCII chars.



SOLUTION:
Introduce new parameter:
mod.txdamM1_SHARED.systemCleanFileName

If this parameter is on then:
1) filename goes through TYPO3 system function cleanFileName (all spaces 
and special chars are converted to safe ASCII values)

2) original filename with special chars are preserved and used as 
"title' when indexing file.

So final result is:
1) safe value of "filename"
2) original file name used as "title"



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dam_file_upload.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-dam/attachments/20091027/740a3864/attachment.txt>


More information about the TYPO3-team-dam mailing list