Error when overwriting FAL file with flash uploader using IE9
- Upload file in filelist using flash uploader
- Upload updated version of the same file (same filename) with the flash upload (overwrite checked)
- Flash upload does not disappear by itself (that's another thing...)
- Click on the folder containing the file
--> The following error is shown as flash message:
1: No unique filename available in "/user_upload/foo/bar/"!
Overwriting the file does work.
Using FF18 with flash: no error message
Disabling the flash uploader and using old school form to upload: no error message
Tested with 2 days old 6.0.1-dev version.
Updated by Patrick Tietz almost 8 years ago
- Target version set to 6.1.1
Have that problem, too, on 6.1 while using t3lib_extFileFunctions.
I think the problem is in /typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php 922 (on 6.1.0) where the comment says "@todo can be improved towards conflict mode naming".
The conflict mode "changeName" is missing, which is default parameter of /typo3/sysext/core/Classes/Resource/ResourceStorage.php / addFile() / line 710.
But only "replace" or "cancel" is passed depending on ExtendedFileUtility::dontCheckForUnique
Here's a little workaround for now:
$basicFileUtil = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Utility\\File\\BasicFileUtility');
$uniqueName = $basicFileUtil->getUniqueName( $_FILES['upload_' . $fileIndex]['name'], $this->origImgPath );
$_FILES['upload' . $fileIndex]['name'] = basename( $uniqueName );
Updated by Andrea Herzog-Kienast over 7 years ago
Same problem for me with TYPO3 6.1.5 and the EXT:news
When I try to upload a file in FAL
I got this error :
1: No unique filename available in "/"!
Same problem if I upload the file directly.
It ist not a problem with extensions. I can't use any kind of image, even if it is in the file system.
And it is not the browser.