filefill
filefill copied to clipboard
Not working for nested storages
Technically TYPO3 allows for creating storages which exist within other storages. Example:
- Storage UID 1: fileadmin/
- Storage UID 2: fileadmin/media/
If a file from storage UID 2 like fileadmin/media/videos/video.mp4 is now embedded in content, Filefill fails to download this file.
@mbrodala Just tried your PR in TYPO3 11.5.4. Unfortunatly it is not working. RemoteResourceCollection::getFileObjectFromStorage returns null (file not exists) :(
Can you debug, why?
@mbrodala Yes here is what i found out : Storage UID 1: fileadmin/ Storage UID 2: fileadmin/media/
Physical file: fileadmin/media/a.jpg
For some reasons a.jpg in sys_file is in storage 1. But TYPO3 or Filefile is using "findBestMatchingStorageByLocalPath" which returns Storage uid 2. -> fail
So i was wrong your patch works for files that have sysfile storage uid 2 but not if they have storage uid 1. I guess one need to change how filefile determins the "matchingStorage".
Not sure anything can be done about this. The extension uses the offical TYPO3 API to determine the storage for a given file path