[FLOW3-general] File upload in FLOW3
Thomas Plessis
t.plessis at totemnumerique.com
Fri Dec 16 11:13:37 CET 2011
Thx Bastian, very helpful.
But now, i've trouble to work with imagine package. It says that "Object "Imagine\Image\ImagineInterface" is not registered." I've upload "Imagine" package folder into "Packages\Framework\" folder. Is that right? What i am supposed to do next?
regards,
Thomas Plessis
Développeur multimédia
--
TOTEMnumerique
9, Place St Étienne
31000 Toulouse
T. 05 61 14 64 54
F. 05 61 14 64 55
Le 15 déc. 2011 à 16:18, Bastian Waidelich a écrit :
> Thomas Plessis wrote:
>
> hi Thomas,
>
>> No ideas? I'm looking to find a way to restrict file uploading to JPG or PNG files. :/
>
> Have a look at the Media package [1].
> If you map the file to an Image model, you should be able to apply validation rules to it.
> Re resizing check out the getThumbnail() method of the Image model. It uses the ImageService to create a so called ImageVariant using the "Imaginge" package [2].
>
> HTH
> Bastian
>
>
> [1] http://git.typo3.org/FLOW3/Packages/TYPO3.Media.git
> [2] http://git.typo3.org/FLOW3/Packages/Imagine.git
> _______________________________________________
> FLOW3-general mailing list
> FLOW3-general at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
More information about the FLOW3-general
mailing list