{ if (e.dataTransfer.effectAllowed != "copy") { return; // not a file drag } isDragOver = true; }} on:dragleave={() => { isDragOver = false; }} on:drop={dropHandler} >
{#each valueAsArray as filename, i (filename + record.id)} {@const isDeleted = deletedFileIndexes.includes(i)}
{#if deletedFileIndexes.includes(i)} {:else} {/if}
{/each} {#each uploadedFiles as file, i}
New {file.name}
{/each}
{ for (let file of fileInput.files) { uploadedFiles.push(file); } uploadedFiles = uploadedFiles; fileInput.value = null; // reset }} />