Skip to content

Commit

Permalink
Limit accepted file types
Browse files Browse the repository at this point in the history
  • Loading branch information
kuroppoi committed Jul 15, 2023
1 parent 6f1853f commit 72d5a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/dashboard/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<option disabled>──────────────────────</option>
</select>
<button onclick="openFileChooser('cgear-file-input')">Upload Custom</button>
<input id="cgear-file-input" type="file" accept="image/*" onchange="uploadSkin('CGEAR', this.files[0])" onclick="this.value = null;" hidden/>
<input id="cgear-file-input" type="file" accept=".png, .bmp, .jpg, .jpeg" onchange="uploadSkin('CGEAR', this.files[0])" onclick="this.value = null;" hidden/>
</div>
<div>
<label>Pokédex Skin | </label><a href="#" onclick="return previewSkin('dex-skin', 'ZUKAN')">Preview</a>
Expand All @@ -141,7 +141,7 @@
<option disabled>──────────────────────</option>
</select>
<button onclick="openFileChooser('dex-file-input')">Upload Custom</button>
<input id="dex-file-input" type="file" accept="image/*" onchange="uploadSkin('ZUKAN', this.files[0])" onclick="this.value = null;" hidden/>
<input id="dex-file-input" type="file" accept=".png, .bmp, .jpg, .jpeg" onchange="uploadSkin('ZUKAN', this.files[0])" onclick="this.value = null;" hidden/>
</div>
<div>
<label>Musical Show</label>
Expand Down

0 comments on commit 72d5a10

Please sign in to comment.