[TYPO3-english] links to generated image files - to inside extension Public folder or out: best practise?
Xavier Perseguers
xavier at typo3.org
Wed Nov 13 09:10:30 CET 2013
Hi,
> Just wondering what the best practise is for this sort of thing:
> my extension generates some barcode images and I am currently storing
> them inside /typo3conf/ext/extensionname/Resources/Public/barcode but
> maybe they should be stored elsewhere - outside the extensions own
> folders? maybe under fileadmin/barcodes or fileadmin/images?
If you generate images, they are not part of your extension, they may
even probably be regenerated on-the-fly. As such writing them to your
extension is not the good way. TYPO3 provides a typo3temp directory for
that purpose, just write to it, ideally within your own "extension"
directory:
typo3temp/tx_<yourext>/wathever/you/want
Kind regards
--
Xavier Perseguers
Release Manager TYPO3 4.6
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
More information about the TYPO3-english
mailing list