Bug #18575
closed
Target was not a directory
Added by Gerhard Obermayr over 16 years ago.
Updated about 6 years ago.
Description
1.) TYPO3 v4.0.1 - v4.1.6
2.) Click fileadmin in the main menu
3.) Create a folder with a name with a dot on the end - eg "06.04."
4.) T3 creates this folder !!!
5.) Klick on this folder brings not content on the right side in BE !
6.) Doe upload files into this folder. You become the message "Target was not a directory"
7.) You canĀ“t delete, move or rename this folder
(issue imported from #M8040)
Files
Same Problem in the latest 4.2 SVN
The last dot in a folder-name as 6.4. is removed, so the patch works..
In TYPO3 4.1 the lines are you wrote in your patch are not completely correct, I don't know whether this could be a problem...
@ Rob: Yes, it is the same.
If it works for you it would be nice if you could give a +1 to this in the core-list otherwise it wouldn't be fixed in the next release.
Why don't you correct this problem in the cleanFileName method in class.t3lib_basicfilefunc.php ? This problem could affect more methods in the code.
Because this function is also used for cleaning filenames which have to have dots in it. I also thought about it but I think that's the best way to solve this.
OK Hauke, you were right. I now attached a new patch which solves this in the cleanFileName function. So now also files are going to be without an ending dot.
The last patch was corrupt so here is the corrected one.
Added patch with spaces after commas.
- Status changed from Resolved to Closed
Also available in: Atom
PDF