From 4cd836dfc7a8fc9cc20e36da4a94a95bbb7f5f73 Mon Sep 17 00:00:00 2001 From: Marcus Sonntag Date: Thu, 19 Oct 2017 17:54:01 +0200 Subject: [PATCH] Add support for tempFiles and datasheets. --- lib/upload-files.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/upload-files.php b/lib/upload-files.php index 20f3bd9..8ae783f 100644 --- a/lib/upload-files.php +++ b/lib/upload-files.php @@ -34,6 +34,12 @@ case 'tempImage': $uploadDir = '/img/tmp'; break; + case 'tempFile': + $uploadDir = '/img/attachments'; + break; + case 'datasheetFile': + $uploadDir = '/attachments/datasheet'; + break; default: return; }