Fork me on GitHub
Current release is 2.1.6 (21 Nov 2014).

Users who have not yet upgraded to 2.1 should get security release 2.0.18.14 (1 Nov 2014). We will stop providing these security releases to 2.0 at the end of this year.

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
Sign In or Register to comment.