I want users to only be allowed to upload images. I tried adding the following to /conf/conf.php
$Configuration['Garden']['Upload']['AllowedFileExtensions'] = array('jpg','jpeg','gif','png');
This apparently prevents .exe and a few other filetypes to be uploaded, but DOES allow .zip, .pdf? Why? How can I fix this?
Thanks a lot!
x00
Don't PM about development, I'm not currently taking on clients MVP
now that is very interesting it appears to work with you comment out
$Configuration['Garden']['Upload']['AllowedFileExtensions']... in config-default.php
So it is not taking precedent.
This isn't really the fault of the plugin, it is for some reason the config option is not taking precedent.
You ca create an issue here https://github.com/vanillaforums/Garden/issues
Answers
Is there a disallowed var ?
Isnt it the other config file ... Default.conf i think you should edit?
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
0 · Insightful Awesome LOL ·Sorry, which file? I don't see default.conf anywhere.
conf.php was mentioned here, someone asked the same question: http://vanillaforums.org/discussion/19558/limit-the-number-of-files-that-can-be-loaded-and-the-file-type-to-only-allow-images-in-fileupload#latest
- Spam
- Abuse
0 · Insightful Awesome LOL ·I am mobile so cannot check.
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
0 · Insightful Awesome LOL ·Bump, anyone? This could be a serious security hole!
- Spam
- Abuse
0 · Insightful Awesome LOL ·Maybe you should email the developer of the pluginand put the word Security Problem - usually gets their attention.
when I see your screen name @Macgyver, I think of the tv show Macgyver where he could probably fix the plugin with a candle, and a bottlecap
http://en.wikipedia.org/wiki/MacGyver from the wiki
... appeared in a MasterCard television commercial for Super Bowl XL. In it, he manages to cut the ropes binding him to a chair using a pine tree air freshener, uses an ordinary tube sock as the pulley for a zip-line, and somehow repairs and hot-wires a nonfunctional truck using a paper clip, ballpoint pen, rubber band, tweezers, nasal spray, and a turkey baster.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
1 · Insightful 1Awesome LOL ·The last paragraph, could be coded in jquery json and ajax lol
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
1 · Insightful 1Awesome LOL ·Great find!
- Spam
- Abuse
0 · Insightful Awesome LOL ·