{#if $cur_tab_doc_can_edit}
onFileSelected(e)} bind:this={fileinput} />
{/if} {#if upload_progress !== null}
{/if} {#if commits} {#await commits.load()}

{$t("connectivity.loading")}...

{:then} {#each $commits.files as file}

{#await get_blob(file, true)}

{:then url} {#await isImage(url) then is} {#if is} {file.name} {/if} {/await} {file.name}
{#if url === false} {$t("errors.cannot_load_this_file")} {:else if prepare_url(file.nuri)} {/if} {/await}

{/each} {/await} {/if}