diff --git a/src/lib/ae_core/ae_comp__hosted_files_download_button.svelte b/src/lib/ae_core/ae_comp__hosted_files_download_button.svelte index f0b6f245..f3f1e35a 100644 --- a/src/lib/ae_core/ae_comp__hosted_files_download_button.svelte +++ b/src/lib/ae_core/ae_comp__hosted_files_download_button.svelte @@ -346,7 +346,20 @@ async function handle_click() { disabled={require_auth && !$ae_loc.authenticated_access} class={variant_classes} onclick={handle_click} - title={`Download this file:\n${final_filename}\n[API] SHA256: ${hosted_file_obj?.hash_sha256?.slice(0, 10)}...\nHosted ID: ${file_id}\n Linked to: ${linked_to_type} ID: ${linked_to_id}`}> + title={ +`Download this file: +${final_filename} +[API] SHA256: ${hosted_file_obj?.hash_sha256?.slice(0, 10)}... +Hosted ID: ${file_id} + +File size: ${hosted_file_obj.file_size ? ae_util.format_bytes(hosted_file_obj.file_size) : 'Unknown size'} +Created on: ${ae_util.iso_datetime_formatter(hosted_file_obj.created_on, 'datetime_short')} +Updated on: ${ae_util.iso_datetime_formatter(hosted_file_obj.updated_on, 'datetime_short')} + +Open with: ${hosted_file_obj.open_in_os == 'win' ? 'Windows' : hosted_file_obj.open_in_os == 'mac' ? 'macOS' : hosted_file_obj.open_in_os == 'linux' ? 'Linux' : '--not set--'} + +Linked to Type: ${linked_to_type ?? '--none--'} ID: ${linked_to_id ?? '---'}` + }> {@render content()} {/if}