Welcome Guest, Not a member yet? Register   Sign In
Uploadify + Upload Class
#5

[eluser]Philo01[/eluser]
Just wondering if it is possible to filter the allowed file types.

When I set it to:

Code:
$config['allowed_types'] = 'png';

And then upload a .jpg it will get accepted, because it is 'application/octet-stream'.

Code:
'jpg'    =>    array('image/jpeg', 'image/pjpeg', 'application/octet-stream')

I know I can remove the application/octet-stream part, but I want my application to have dynamic file type support.
So you can choose the allowed file types: jpg,jpeg,png and gif.
Anyway to get around this problem?

Thanks!


Messages In This Thread
Uploadify + Upload Class - by El Forum - 02-14-2010, 10:14 AM
Uploadify + Upload Class - by El Forum - 02-14-2010, 08:31 PM
Uploadify + Upload Class - by El Forum - 02-14-2010, 10:21 PM
Uploadify + Upload Class - by El Forum - 02-15-2010, 02:11 AM
Uploadify + Upload Class - by El Forum - 02-15-2010, 02:19 AM
Uploadify + Upload Class - by El Forum - 02-15-2010, 02:27 AM
Uploadify + Upload Class - by El Forum - 02-15-2010, 02:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB