Upload file type

chivas12

Joined: 2005-05-31
Posts: 43
Posted: Thu, 2005-08-18 13:25

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):

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2005-08-18 14:19

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

 
deepsingh

Joined: 2008-02-19
Posts: 17
Posted: Thu, 2008-05-01 06:49

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