mirror of https://github.com/hykilpikonna/AquaDX
fix: 🐛 use accept= property correctly, use exclusively the correct mimetype for jpeg
parent
16112d4f1d
commit
5fb5e52e54
|
@ -106,7 +106,6 @@
|
||||||
}).catch(e => error = e.message).finally(() => submitting = "")
|
}).catch(e => error = e.message).finally(() => submitting = "")
|
||||||
break;
|
break;
|
||||||
case "image/png":
|
case "image/png":
|
||||||
case "image/jpg":
|
|
||||||
case "image/jpeg":
|
case "image/jpeg":
|
||||||
case "image/webp":
|
case "image/webp":
|
||||||
pfpCropURL = URL.createObjectURL(file);
|
pfpCropURL = URL.createObjectURL(file);
|
||||||
|
@ -153,7 +152,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<!-- Genuinely don't know why this is giving me an intellisense error. Works fine. -->
|
<!-- Genuinely don't know why this is giving me an intellisense error. Works fine. -->
|
||||||
<input id="profile-upload" type="file" accept="image/*" style="display: none" bind:this={pfpField}
|
<input id="profile-upload" type="file" accept="image/gif,image/png,image/jpeg,image/webp" style="display: none" bind:this={pfpField}
|
||||||
on:change={handlePfpUpload} />
|
on:change={handlePfpUpload} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue