Skip to content

Commit

Permalink
Add support for tempFiles and datasheets.
Browse files Browse the repository at this point in the history
  • Loading branch information
sonntam committed Oct 19, 2017
1 parent f4d7be6 commit 4cd836d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/upload-files.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
case 'tempImage':
$uploadDir = '/img/tmp';
break;
case 'tempFile':
$uploadDir = '/img/attachments';
break;
case 'datasheetFile':
$uploadDir = '/attachments/datasheet';
break;
default:
return;
}
Expand Down

0 comments on commit 4cd836d

Please sign in to comment.