set accepted mimetypes and required-flag for file uploads for Questtype ?Submit?
This commit is contained in:
parent
1126a4267f
commit
d63cf04908
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@
|
|||
<?php endif ?>
|
||||
<?php if(is_null($submission)) : ?>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type="file" name="answers" /><br />
|
||||
<input type="file" name="answers" required="required" accept="<?=implode(',', array_map(function($m) { return $m['mimetype']; }, $mimetypes))?>" /><br />
|
||||
<?=_('Allowed file types')?>:
|
||||
<ul>
|
||||
<?php foreach($mimetypes as &$mimetype) : ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue