Use MIME type instead of explicit filetype endings during the file selection of the Teleporter input field. Even when the latter should be fine according to the standards, Safari (and, in general, any browser on Mac) seems to ignore this and support only mimetype-based selections. This is backed by several similar reports on Stackoverflow over the past couple of years.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2024-02-28 17:59:52 +01:00
parent da7c0efb02
commit 5f8102fd66
+1 -1
View File
@@ -38,7 +38,7 @@ mg.include('scripts/pi-hole/lua/settings_header.lp','r')
<div class="box-body">
<div class="form-group">
<label for="file">File input</label>
<input type="file" name="file" id="file" accept=".zip,.tar.gz">
<input type="file" name="file" id="file" accept="application/gzip,application/zip">
<p class="help-block">When importing settings from a <em>newer</em> version of Pi-hole, not yet existing settings will be ignored. When importing from an <em>older</em> version of Pi-hole, settings for newer features will be initialized with their default values.</p>
</div>
<div class="pull-right">