Extbase - File Abstraction Layer (FAL)

Aus Wikizone
Wechseln zu: Navigation, Suche

Allgemein Dateien mit Extbase Handeln

In general, you should be able to call getOriginalResource() on a \TYPO3\CMS\Extbase\Domain\Model\FileReference object. For more concrete examples, either refer to the doc links or have a look at the wiki for a example handling FileReferences.

Beispiele

Basics

http://www.typo3tiger.de/blog/post/extbase-fal-beispiel.html

Beispiel Dateiupload

http://www.koller-webprogramming.ch/tipps-tricks/typo3-extension-entwicklung-extbase/dateien-und-bilder-mit-extbase-61-uploaddownload-via-fal-file-abstraction-layer/

Beispiel File Referenz dynamisch erzeugen

http://www.typo3tiger.de/blog/post/extbase-fal-filereference-im-controller-erzeugen.html

Upload Beispiel - Reusable Code

Um wiederverwendbar für alle Controller zu sein, darf der Code nicht im Controller sein. Dann wirds aber komplizierter. Hier ein Beispiel wie es geht:

https://github.com/helhum/upload_example
http://insight.helhum.io/post/85015526410/file-upload-using-extbase-and-fal-in-typo3-62