Limit file inputs to accepted extensions

This commit is contained in:
str4d
2016-05-23 11:29:10 +00:00
parent 96fc02de5c
commit 1a335321b2
2 changed files with 2 additions and 2 deletions

View File

@@ -167,7 +167,7 @@ input.default { width: 1px; height: 1px; visibility: hidden; }
<td>
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
<%=intl._t("Select xpi2p or su3 file")%>:&nbsp;
<input type="file" name="pluginFile" >
<input type="file" name="pluginFile" accept=".xpi2p,.su3" >
</td>
<td class="optionsave" align="right">
<input type="submit" name="action" class="download" value="<%=intl._t("Install Plugin from File")%>" />

View File

@@ -54,7 +54,7 @@
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
<td>
<%=intl._t("Select zip or su3 file")%>:
<input name="file" type="file" value="" />
<input name="file" type="file" accept=".zip,.su3" value="" />
</td>
<td class="optionsave">
<input type="submit" name="action" class="download" value="<%=intl._t("Reseed from file")%>" />