Upload
{#if error}
{error}
{/if} {#if success}
{success}
Browse images
{/if}
Image / Video
{ file = (e.target as HTMLInputElement).files?.[0] ?? null; }} disabled={loading} />
Tags (comma-separated)
setTimeout(() => { showSuggestions = false; }, 200)} disabled={loading} /> {#if showSuggestions}
{#each suggestions as s}
selectSuggestion(s)}>{s}
{/each}
{/if}
{loading ? 'Uploading...' : 'Upload'}