Cleaning up imageuploader
Adding better error handling with description toast message and removing issues causing the user to have to reload the page Adds change with relation to jellyfin/jellyfin#247
This commit is contained in:
parent
b7e857127c
commit
12fdec53b4
44 changed files with 98 additions and 2 deletions
|
@ -22,12 +22,13 @@
|
|||
<div class="imageEditor-dropZone fieldDescription">
|
||||
<div>${LabelDropImageHere}</div>
|
||||
<output id="imageOutput" class="flex align-items-center justify-content-center" style="position: absolute;top:0;left:0;right:0;bottom:0;width:100%;"></output>
|
||||
<input type="file" accept="image/*" id="uploadImage" name="uploadImage" style="position: absolute;top:0;left:0;right:0;bottom:0;width:100%;opacity:0;" />
|
||||
<input type="file" accept="image/png,image/x-png,image/jpeg" id="uploadImage" name="uploadImage" style="position: absolute;top:0;left:0;right:0;bottom:0;width:100%;opacity:0;" />
|
||||
</div>
|
||||
<div id="fldUpload" class="hide">
|
||||
<br />
|
||||
<div class="selectContainer">
|
||||
<select is="emby-select" id="selectImageType" name="selectImageType" label="${LabelImageType}">
|
||||
<option value="None"></option>
|
||||
<option value="Primary">${Primary}</option>
|
||||
<option value="Art">${Art}</option>
|
||||
<option value="Backdrop">${Backdrop}</option>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue