[TYPO3] NO to multipled images
T.Joga
email at welho.com
Thu Jan 19 11:45:02 CET 2006
If you dont like that typo multiples images like image-01.jpg,
image-02.jpg ..etc. you can do this:
\typo3\t3lib\class.t3lib_basicfilefunc.php
around line 280
function getUniqueName($theFile, $theDest, $dontCheckForUnique=0)
change to:
function getUniqueName($theFile, $theDest, $dontCheckForUnique=1)
this prevents typo to unique picture names to "-01", "02"..
\typo3\t3lib\class.t3lib_tcemain.php
around line 1660 or 1825
t3lib_div::upload_copy_move($theFile,$theDestFile);
change to:
if(!file_exists($theDestFile)){
t3lib_div::upload_copy_move($theFile,$theDestFile); };
When you copy default content elements in multilanguage site, files are
wiped to 0bytes if you dont make this change.
I dont give any guarantee for this dirty hack. I am no expert with typo,
so there could be a really simple way to situations like this?
More information about the TYPO3-english
mailing list