[Flow] How can I validate an uploaded file extension
Aske Ertmann
aske at moc.net
Tue Jun 18 10:41:51 CEST 2013
Hi Pavlina
In Neos we use a custom ImageTypeConverter where I started to add checks for upload error. You could include additional validation here.
See https://review.typo3.org/#/c/18564
The original resource https://git.typo3.org/FLOW3/Packages/TYPO3.FLOW3.git/blob/HEAD:/Classes/TYPO3/Flow/Resource/ResourceTypeConverter.php
Though I'm not sure this is the best approach for validating this, I don't know if there another way to use an actual validator instead. Maybe someone else has any experience?
Aske
On 17/06/2013, at 19.47, Pavlina wrote:
> Hi all,
>
> could someone please tell me and probably give me an example how can I validate the file type, the extension and the size when I upload resource (file)?
>
> Thank you in advance!
>
> Regards, Pavlina
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list