Vanilla Forums: Community Forums Evolved
Addons
Community
Documentation
Blog
Download
Hosting
Start Using Vanilla today
Home
›
Questions
Sign In
•
Register
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Unanswered
860
Best of...
Categories
All Categories
19.3K
Questions
18.3K
Developers
83
Localization
104
Feedback
757
Blog
17
In this Discussion
clethrill
August 2011
prabhavathi
August 2011
Fileupload - Allow only images
prabhavathi
August 2011
in
Questions
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:
fileupload
Flag
Spam
Abuse
Troll
0
•
Off Topic
Insightful
Awesome
LOL
•
Best Answer
clethrill
✭
August 2011
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
Flag
Spam
Abuse
Troll
0
•
Off Topic
Insightful
Awesome
LOL
•
Answers
prabhavathi
August 2011
Thank you!
Flag
Spam
Abuse
Troll
0
•
Off Topic
Insightful
Awesome
LOL
•
Sign In
or
Register
to comment.
Powered by Vanilla
Answers
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •