[TYPO3-english] FAL fileImport

Toke Herkild th at t3cms.dk
Thu Apr 21 10:16:06 CEST 2016


Hi all,

I'm writing an import of Pages, Content and images from an old
installation to TPO3 6.2.x. And no the default upgrade and migration
does not suit this operation.

Pages and content is fairly forward using Datahandler, but Images, old
installations got multiple copies of the same image having different
names eg: ..01.jpg, ..02.jpg, ..03.jpg and so forth.

I've found this on the FAL wiki:
$filePath = 'fileadmin/user_upload/image.jpg'; // path relative to TYPO3
root
$fileObject =
TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->retrieveFileOrFolderObject($filePath);

But does it check for file content checksum or only on filename checksum ?

Regards,
Toke

---
Denne e-mail blev kontrolleret for virusser af Avast antivirussoftware.
https://www.avast.com/antivirus



More information about the TYPO3-english mailing list