How to prevent uploading some files such as php

Discuss about features you want to see in the next versions of ApPHP DataGrid. Your requests and offers.

Moderator: alexandrleonenko

mbnaj
Newbie
Newbie
Posts: 4
Joined: Mar 1st, '11, 00:33

How to prevent uploading some files such as php

Postby mbnaj » Aug 5th, '12, 10:47

Hello

When i use "file" as input type to upload files such as pdf or other, i want to prevent user from uploading a php file

How can i prevent uploading some files such as php, asp , aspx, cgi

Please help

administrator
Site Admin
Site Admin
Posts: 6011
Joined: Jan 7th, '09, 23:18
Contact:

Re: How to prevent uploading some files such as php

Postby administrator » Aug 6th, '12, 07:06

Use:

field attribute 'allowed_extensions'=>'' - comma separated list of allowed extensions for uploaded files

For example:
'allowed_extensions'=>'jpg, gif, png'

gavind
Junior
Junior
Posts: 14
Joined: Nov 8th, '12, 22:41

Re: How to prevent uploading some files such as php

Postby gavind » Nov 18th, '12, 14:36

Hi. is this a conf file where we edit this? I tried too look everywhere but I can't find any entry that says 'allowed_extensions'.
Mastery through mistakes. Image



Return to “ApPHP DataGrid {future features}”