Skip to content

Commit

Permalink
Re-add adif + tq8 mime types, upload path
Browse files Browse the repository at this point in the history
- 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 85a167e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion application/config/mimes.php
Expand Up @@ -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'
);
2 changes: 1 addition & 1 deletion application/controllers/Adif.php
Expand Up @@ -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);
Expand Down

0 comments on commit 85a167e

Please sign in to comment.