Hi,
I need to restrict file uploads, only to allow images. FOund a lot of unanswered questions of this type here.
Can anybody help me?
Thanks
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Team Webgalli@webgalli
Team Webgalli - 0 likes
- Luciano Caratori@Lcarato
Luciano Caratori - 0 likes
You must log in to post replies.Just check the code for tidypics. it will help you. i will give you some points
1) in the action/upload find the mime of the uploaded file
2) restrict only jpeg/gif/png images
this can be easily done. just look at the actions of some pluggins like tidypics/profile etc..
Thank you so much! It's the first place I should have looked in, But I've just finished my first installation!