Permalink
Browse files

Merge pull request #212 from wvolz/codeignitor3-mime-type-fix

Re-add adif + tq8 mime types, upload path
  • Loading branch information...
magicbug committed Dec 19, 2017
2 parents 90826b5 + 85a167e commit 41df4f9f055d5ad5b56fd2ca15eace20cfc49921
Showing with 8 additions and 2 deletions.
  1. +7 −1 application/config/mimes.php
  2. +1 −1 application/controllers/Adif.php
@@ -179,5 +179,11 @@
'odt' => 'application/vnd.oasis.opendocument.text',
'odm' => 'application/vnd.oasis.opendocument.text-master',
'ott' => 'application/vnd.oasis.opendocument.text-template',
'oth' => 'application/vnd.oasis.opendocument.text-web'
'oth' => 'application/vnd.oasis.opendocument.text-web',
'adi' => array('application/octet-stream','text/plain'),
'adif' => array('application/octet-stream','text/plain'),
'ADI' => array('application/octet-stream','text/plain'),
'ADIF' => array('application/octet-stream','text/plain'),
'tq8' => 'application/octet-stream',
'TQ8' => 'application/octet-stream'
);
@@ -70,7 +70,7 @@ public function import() {
$data['page_title'] = "ADIF Import";
$config['upload_path'] = 'uploads/';
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'adi|ADI|adif|ADIF';
$this->load->library('upload', $config);

0 comments on commit 41df4f9

Please sign in to comment.