{ dispatch('close') }} size="1200px" > {#if workspaceSettingsInitialized === false} {#if fromWorkspaceSettings}

Double check the S3 resource fields and 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}

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 !fileListUnavailable}
{#if fileListLoading === false && displayedFileKeys.length === 0}
No files in the workspace S3 bucket at that prefix
{:else}
{@const file_info = allFilesByKey[displayedFileKeys[index]]}
selectItem(index)} class={`flex flex-row h-full font-semibold text-xs items-center justify-start ${ selectedFileKey !== undefined && selectedFileKey.s3 === file_info.full_key ? 'bg-surface-hover' : '' } `} >
{#if file_info.type === 'folder'} {#if file_info.collapsed}{:else}{/if}
{file_info.display_name}
{:else}
{file_info.display_name}
{/if}
{count} items on this page
Page {page + 1}
{#if count == maxKeys} {/if}
{#if fileListLoading === true}
Loading content
{/if} {/if}
{/if}
{#if fileMetadata === undefined}
{#if fileInfoLoading}
{:else if fileListUnavailable}
{:else}
{/if}
{:else}
{#if filePreview !== undefined}
{/if}
{#if fileMetadata !== undefined && filePreview !== undefined}
{#if filePreview.contentType === 'Unknown'} Type of file not supported for preview. {:else if filePreview.contentType === 'Csv'} Previewing a {filePreview.contentType?.toLowerCase()} file. Separator character:
Header row:
loadFilePreview( fileMetadata?.fileKey ?? '', fileMetadata?.size, fileMetadata?.mimeType )} />
{:else} Previewing a {filePreview.contentType?.toLowerCase()} file. {/if}
{#if !emptyString(filePreview.contentPreview)}{filePreview.contentPreview}{:else if filePreview.contentType !== undefined}Preview impossible.{/if}
{:else if filePreviewLoading}
File preview loading
{/if}
{/if}
{#if !readOnlyMode} {#if !fromWorkspaceSettings} {/if} {/if}
{ deletionModalOpen = false }} on:confirmed={() => { deleteFileFromS3(fileMetadata?.fileKey) }} keyListen={false} bind:loading={fileDeletionInProgress} >
Are you sure you want to permanently delete {fileMetadata?.fileKey} from the S3 bucket?
{ moveModalOpen = false }} on:confirmed={() => { moveS3File(fileMetadata?.fileKey, moveDestKey) }} keyListen={false} bind:loading={fileMoveInProgress} >
New key:
Are you sure you want to permanently move {fileMetadata?.fileKey}?
{ uploadModalOpen = false if (evt.detail !== undefined && evt.detail !== null) { selectedFileKey = { s3: evt.detail } loadFiles() loadFileMetadataPlusPreviewAsync(evt.detail) } }} />