[TYPO3-dam] no filename transformation after file upload
Krystian Szymukowicz
t33kRE.MO.VE. at RE.MO.VE.prolabium.com
Fri Mar 28 18:55:11 CET 2008
Krystian Szymukowicz wrote:
>
> hi
>
> as I remember DAM always was performing filename transformation after
> upload:
>
> 1) space was converted to underscores
> 2) national characters was converted to ascii
>
>
> In the latest trunk however this not happen anymore. Tested on TYPO3 4.2
> b3.
>
>
> I set:
> $TYPO3_CONF_VARS['SYS']['UTF8filesystem'] = '0';
>
> but this did not help at all.
>
>
> Was the default filename transformation turned off?
>
> Can anyone confirm this?
>
Finally I got the filename transformation back.
in file binding/tce/class.tx_dam_tce_extfilefunc.php
at line 328
there is:
$theName = tx_dam::file_makeCleanName($_FILES['upload_'.$id]['name']);
#$theName = $this->cleanFileName($_FILES['upload_'.$id]['name']);
It's enough to uncomment line 329 and let the standard function
"cleanFileName" do the right job.
--
grtz
Krystian
More information about the TYPO3-project-dam
mailing list