33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-29 04:42:36 +00:00

Accept supported filetypes only

This commit is contained in:
Denis Ryabov 2021-02-15 23:25:42 +03:00
parent f22a82d6cf
commit c02a2607a8

View File

@ -87,7 +87,7 @@ function add_validation() {
<div class="form-row">
<div class="col-md-6 mb-3">
<div class="custom-file">
<input type="file" class="custom-file-input" name="extension" id="extension" required>
<input type="file" class="custom-file-input" name="extension" id="extension" required accept=".bz2,.bzip2,.gz,.gzip,.tar,.tbz2,.tgz,.zip">
<label class="custom-file-label" for="extension"><?php echo JText::_('COM_JEDCHECKER_UPLOAD_FILE'); ?></label>
<div class="invalid-feedback"><?php echo JText::_('COM_JEDCHECKER_EMPTY_UPLOAD_FIELD'); ?></div>
</div>