Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Fileupload - Allow only images
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?
Right now, what type of files can they upload?
Tagged:
0
Best Answer
-
clethrill ✭✭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, gif0
Answers
$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