[TYPO3] PHP help ! does this code look like it would check a file extensions, and disallow php files or exe files to be attached
dave typo
typothree at gmail.com
Thu Jun 14 16:31:39 CEST 2007
what is your point dmitry?
'filename' shouldve always been 'file_name' if that's what you're referring
to.
unless 'filename' is something uniquely typo3.....
what are you trying to point out?
On 6/14/07, Dmitry Dulepov <dmitry at typo3.org> wrote:
>
> Rens Admiraal wrote:
> > The code below is correct... If you want the right mime types you can
> > search google...
>
> Also _POST('filename')?
>
> >> <?php
> >> $allowed = array( 'file/pdf' ,
> >> 'file/doc',
> >> 'file/xls',
> >> 'file/ppt'
> >> );
> >>
> >> if (in_array(filetype(t3lib_div::_POST('filename'), $allowed) {
>
> --
> Dmitry Dulepov
> TYPO3 freelancer / TYPO3 core team member
> Web: http://typo3bloke.net/
> Skype: callto:liels_bugs
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list