{#each files as file}
{#if file.type.startsWith("image")}
{:else}
{/if}
{file.name}
{/each}