Permalink
Browse files

Re-add adif + tq8 mime types, upload path

- set ADIF file upload path to ./upload/
- for ADIF my browser uses text/plain, so
  add this to the adi/adif types
  • Loading branch information...
wvolz committed Dec 18, 2017
1 parent 90826b5 commit 85a167eda93001d59cb6e842069d3e151ad19bac
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 85a167e

Please sign in to comment.