Open cweiske opened 10 months ago
This patch fixes the problem that fetching a folder via API and using that to upload a file put the file into the wrong folder:
$folder = $storage->getFolder('myfolder'); $storage->addFile('/tmp/file.txt', $folder, 'file.txt'); //created "/myfolderfile.txt" instead of "/myfolder/file.txt"
TYPO3's own AbstractHierarchicalFilesystemDriver::canonicalizeAndCheckFolderIdentifier appends slashes, and our createFolder() already returned identifiers with slashes at the end.
AbstractHierarchicalFilesystemDriver::canonicalizeAndCheckFolderIdentifier
createFolder()
Resolves: https://github.com/andersundsehr/aus_driver_amazon_s3/issues/146
This patch fixes the problem that fetching a folder via API and using that to upload a file put the file into the wrong folder:
TYPO3's own
AbstractHierarchicalFilesystemDriver::canonicalizeAndCheckFolderIdentifier
appends slashes, and ourcreateFolder()
already returned identifiers with slashes at the end.Resolves: https://github.com/andersundsehr/aus_driver_amazon_s3/issues/146