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!
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.