[eluser]Daniel H[/eluser]
Hi-
I wonder if anyone could help me here. I am trying to allow the upload class to upload both .jar and .jnlp files.
By adding
Code:
'jnlp' => 'application/x-java-jnlp-file',
in the mimes config file, I can allow uploading jnlp files. However I can't allow jar files, despite adding:
Code:
'jar' => array('application/java-archive', 'application/x-jar', 'application/x-java-jar', 'application/octet-stream')
($_FILES reports the file as a 'application/octet-stream').
Can anyone help me out here?
(Before you ask, my allow types config is $config['allowed_types'] = 'gif|jpg|png|jar|flv|jnlp'; )