Extbase - File Abstraction Layer (FAL): Unterschied zwischen den Versionen
Aus Wikizone
| Zeile 9: | Zeile 9: | ||
=== Beispiel File Referenz dynamisch erzeugen === | === Beispiel File Referenz dynamisch erzeugen === | ||
http://www.typo3tiger.de/blog/post/extbase-fal-filereference-im-controller-erzeugen.html | 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 | ||
Version vom 21. Oktober 2015, 16:47 Uhr
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
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