Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Only allow images (AllowedFileExtensions doesn't work!)

edited June 2012 in Questions
This discussion is related to the FileUpload addon.

I want users to only be allowed to upload images. I tried adding the following to /conf/conf.php

$Configuration['Garden']['Upload']['AllowedFileExtensions'] = array('jpg','jpeg','gif','png');

This apparently prevents .exe and a few other filetypes to be uploaded, but DOES allow .zip, .pdf? Why? How can I fix this?

Thanks a lot!

Best Answer

  • x00x00 Don't PM about development, I'm not currently taking on clients MVP
    edited June 2012 Answer ✓

    now that is very interesting it appears to work with you comment out

    $Configuration['Garden']['Upload']['AllowedFileExtensions']... in config-default.php

    So it is not taking precedent.

    This isn't really the fault of the plugin, it is for some reason the config option is not taking precedent.

    You ca create an issue here https://github.com/vanillaforums/Garden/issues

Answers

Sign In or Register to comment.