Welcome Guest, Not a member yet? Register   Sign In
allow all filetypes upload
#3

[eluser]Raiko[/eluser]
[quote author="dexter21" date="1213973119"]Hi,

how could i enable upload all filetypes files with upload class?

if i set $config['allowed_types']=''; after that if i tried to upload a zip it said :
Tipo de archivo inválido


Many thanks[/quote]

The allowed_types field is meant for the mime types of the allowed files. It has no default, so setting it to empty is going to produce exactly what you have.

I definitely would go with what Mr. Renouf said. Allowing all file types is a security hole. Many a forum system has been attacked in this manner. Usually a script file is uploaded and executed, giving the attacker access to what he/she wants usually.

I would advise against it. Please select only those that you want uploaded.


Messages In This Thread
allow all filetypes upload - by El Forum - 06-20-2008, 03:45 AM
allow all filetypes upload - by El Forum - 06-20-2008, 05:29 AM
allow all filetypes upload - by El Forum - 06-20-2008, 06:45 AM
allow all filetypes upload - by El Forum - 08-17-2008, 08:32 PM
allow all filetypes upload - by El Forum - 08-17-2008, 11:36 PM
allow all filetypes upload - by El Forum - 08-19-2008, 05:52 PM
allow all filetypes upload - by El Forum - 08-20-2008, 11:44 AM
allow all filetypes upload - by El Forum - 08-20-2008, 12:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB