Hi all,
Is there any method to enable the user to upload only image files(jpeg,png,gif,etc) but not any other else? Do I need to write any code and can anyone provide some guidelines to me?
Thanks a lot!
Chivas12
<TYPE YOUR MESSAGE HERE, ENTER SYSTEM DETAILS BELOW>
<Please check the G2 FAQ (sticky topic in this forum) before posting!>
----
Gallery URL (optional):
Gallery version:
Webserver (with version):
Datatabase (with version):
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:
Web browser/version:
G1 version (for migration bugs):
Posts: 16504
DO NOT ask the same question in different forums. I'm locking this thead.
Keep your questions on this topic here, http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=34555&highlight=filter+file+type
Posts: 17
hi, use mime maintenance module, this module will solve your problem. This Mime module have all option, if you want to block specific mime type or allow to upload specific mime, it is very good option for you.
* Allows you to view and edit Gallery's file extension (e.g. '.jpg') to MIME-type mapping.
* Configure MIME-types that are allowed to be uploaded (added in G2.2)
download from here : http://codex.gallery2.org/Gallery2:Download#Modules
deepsingh