{#snippet tableLoading()}
Loading table...
{/snippet} {#if workspaceSettingsInitialized === false}
{#if fromWorkspaceSettings}

Double check the S3 resource fields and try again.

{:else if s3ResourcePath}

Double check the resource fields and that its object storage is reachable, then try again.

{:else}

The workspace needs to be connected to an S3 storage to use this feature. You can configure it here.

{/if}
{:else} {#if fileListUnavailable == true} {#if replaceUnauthorizedWarning} {@render replaceUnauthorizedWarning()} {:else}

You don't have access to the S3 bucket resource and your administrator has restricted the access to it. You are not authorized to browse the bucket content. If you think this is incorrect, please contact your workspace administrator.

More info in Windmill's documentation

{/if} {/if} {#if !fileListUnavailable} {#if !rootPath}
{/if} {#if displayedFileKeys.length === 0} {#if fileListLoading}
Loading...
{:else}
{#if filter.trim() !== ''} No files starting with "{filter.trim()}" {:else} No files in the workspace S3 bucket {/if}
{#if flatHasMore}
{/if} {/if} {:else}
{#snippet header()}{/snippet} {#snippet footer()}{/snippet} {#snippet item({ index, style })} {@const item_key = displayedFileKeys[index] ?? ''} {@const is_load_more = item_key.endsWith(LOAD_MORE_SUFFIX)} {@const load_more_prefix = is_load_more ? item_key.slice(0, -1) : ''} {@const file_info = allFilesByKey[item_key]}
{#if is_load_more} {@const loadMoreNesting = nestingLevelOf(load_more_prefix + 'x') - 2 * rootPathNestingLevel} {@const loadingMore = folderState[load_more_prefix]?.loading === true} {:else if file_info} {@const nestingLevel = file_info.nestingLevel - 2 * rootPathNestingLevel} {@const isSelected = selectedFileKey?.s3 === file_info.full_key} {@const isFolder = file_info.type === 'folder'} {@const RowIcon = isFolder ? file_info.collapsed ? FolderClosed : FolderOpen : fileIconFor(file_info.display_name)} {/if}
{/snippet}
{#if fileListLoading === true}
Loading...
{:else if lazyMode}
{displayedCount} item{displayedCount === 1 ? '' : 's'} shown
{:else}
{displayedCount}{flatHasMore ? '+' : ''} {displayedCount !== count ? 'filtered ' : ''}items (including inside folders)
{#if flatHasMore} {/if} {/if}
{/if}
{/if}
{#if fileMetadata === undefined}
{#if fileInfoLoading} Loading... {:else if fileListUnavailable} No file to preview {:else} Select a file to preview {/if}
{:else} {@const displayedKey = fileMetadata.fileKey.startsWith(rootPath) ? fileMetadata.fileKey.slice(rootPath.length) : fileMetadata.fileKey} {@const slash = displayedKey.lastIndexOf('/')} {@const fileName = displayedKey.slice(slash + 1)} {@const FileKindIcon = fileIconFor(fileName)} {@const details = [ fileMetadata.mimeType, fileMetadata.sizeStr, fileMetadata.lastModified && `Modified ${fileMetadata.lastModified}` ].filter(Boolean)}
{#if slash >= 0}{displayedKey.slice(0, slash + 1)}{/if}{fileName}
{#if !hideS3SpecificDetails && details.length > 0}
{#each details as detail, i} {#if i > 0}·{/if} {detail} {/each}
{/if}
{#if tableSource} (viewMode = v)} class="shrink-0" > {#snippet children({ item })} {/snippet} {/if} {#if filePreview?.contentType === 'Csv'}
Separator
Are you sure you want to permanently move {fileMetadata?.fileKey}?
{ uploadModalOpen = false if (evt.detail !== undefined && evt.detail !== null) { selectedFileKey = { s3: evt.detail, storage } await clearAndLoadFiles() loadFileMetadataPlusPreviewAsync(evt.detail) } }} />