use client?s mimetype as fallback for uploads
This commit is contained in:
parent
3e37012ba0
commit
510f6a869f
2 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@
|
|||
// Check mimetype
|
||||
$mimetypes = $this->Submit->getAllowedMimetypes($seminary['id']);
|
||||
$answerMimetype = null;
|
||||
$answer['mimetype'] = \hhu\z\Utils::getMimetype($answer['tmp_name']);
|
||||
$answer['mimetype'] = \hhu\z\Utils::getMimetype($answer['tmp_name'], $answer['type']);
|
||||
foreach($mimetypes as &$mimetype) {
|
||||
if($mimetype['mimetype'] == $answer['mimetype']) {
|
||||
$answerMimetype = $mimetype;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue