33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-05 21:07:57 +00:00

Accept .zip and .gz files only

This commit is contained in:
Denis Ryabov 2021-02-15 23:25:42 +03:00 committed by GitHub
parent f22a82d6cf
commit 483fe12383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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="application/zip,application/x-gzip,application/x-compressed,application/x-tar">
<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>