Fork me on GitHub
Current releases are 2.1.4 (30 Oct 2014) and 2.0.18.13 (5 Aug 2014)

Ready for 2.1? Find out if your plugins are compatible. 2.0 will no longer be updated after Dec 2014.

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.