Welcome Guest, Not a member yet? Register   Sign In
File uploading class : File type not allowed ?
#1

[eluser]deadzebra[/eluser]
This is rather odd.
im using this for the file uploading class config allowed types.
Code:
$file_types = 'thm|sis|sisx|jar';
$config['allowed_types'] = $file_types;

and i then upload a .jar file...
But sure enough i get the error "The filetype you are attempting to upload is not allowed." returned to me... ?
#2

[eluser]deadzebra[/eluser]
hmmm
#3

[eluser]deadzebra[/eluser]
Random...i echoed the mime type of the file which turned out to be jarapplication/octet-stream then i added that to the file types
Code:
$file_types = 'jarapplication/octet-stream|thm|sis|sisx|jar';
$config['allowed_types'] = $file_types;

but for some reason its still not working...any ideas ?
#4

[eluser]erricgunawan[/eluser]
Have you check the server configuration?
Maybe there are any size limitation that don't match with the file you try to upload.

Well, it happens to me once. Just thinking that maybe you have same case Smile
#5

[eluser]deadzebra[/eluser]
if i upload a mp3 or jpeg bigger than the jar file i am trying to upload i dont get an error but thanks anyway Smile still have no idea whats going on




Theme © iAndrew 2016 - Forum software by © MyBB