Howdy, Stranger!

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

Try Vanilla Forums Cloud product

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Vanilla 2.2.1 is now available.
Please upgrade to 2.1.x here. The 2.0 branch is no longer being updated.

Fileupload - Allow only images

This discussion is related to the FileUpload addon.
edited August 2011 in Vanilla 2.0 Help
I today saw, a new user uploaded a doc file. Is there any way to allow users to upload only images?

Right now, what type of files can they upload?
Tagged:

Best Answer

  • clethrillclethrill ✭✭
    Answer ✓
    In the plugin's config file (config-defaults.php) there is a line:

    $Configuration['Garden']['Upload']['AllowedFileExtensions'] = array('txt','jpg','gif','png','bmp','zip','gz','tar.gz','tgz','psd','ai','fla','swf','pdf','doc','xls','ppt','docx','xlsx','log');

    Change the file extensions to what you wish.
    like maybe only jpg, jpeg, png, bmp, gif

Answers

Sign In or Register to comment.