Actions
Bug #45748
closedretrieveFileOrFolderObject does not support folder.
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2013-02-22
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Hi,
I have an old extension which uploads files to uploads/tx_myextension/.
The extension uses the old t3lib_extFileFunctions. The upload process fails with the following exception: "TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException"
in function retrieveFileOrFolderObject (ResourceFactory.php) if the parameter given is only a folder path (which comes from t3lib_extFileFunctions::func_upload) will trigger getFileObjectFromCombinedIdentifier(). in the function the getFile will be called, which will return false, since only a folder path is given. In the LocalDriver.php there's a getFolder method which checks if the folder exists.
I'll try to make a patch in the next day.
thanks.
Actions