Fork me on GitHub
Please upgrade to 2.1.x here. The 2.0 branch is no longer being updated.
You should grab 2.1.9, released 18 March. It's what all the cool kids are doing.

Fileupload - Allow only images

edited August 2011 in Vanilla 2.0 Help
This discussion is related to the FileUpload addon.
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.