Extbase - File Abstraction Layer (FAL): Unterschied zwischen den Versionen
Aus Wikizone
Steff (Diskussion | Beiträge) |
|||
| Zeile 13: | Zeile 13: | ||
https://github.com/helhum/upload_example | https://github.com/helhum/upload_example | ||
http://insight.helhum.io/post/85015526410/file-upload-using-extbase-and-fal-in-typo3-62 | http://insight.helhum.io/post/85015526410/file-upload-using-extbase-and-fal-in-typo3-62 | ||
| + | http://wiki.zone30.info/wikizone/images/8/8b/Upload_example-master.zip | ||
Version vom 21. Oktober 2015, 16:55 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
http://wiki.zone30.info/wikizone/images/8/8b/Upload_example-master.zip