HokoriTemp

File Download

{{ filename }}

Size: {{ "%.2f"|format(file_size / 1024 / 1024) }} MB {% if mime_type %} Type: {{ mime_type }} {% endif %} Expires: {{ expiration_date[:19].replace('T', ' ') }}
{% if is_text_file and file_content %}

File Preview

Text file preview
{{ file_content }}

Preview shows the first part of the file content. Download the file to view the complete content.

{% elif is_text_file %}

Preview Not Available

This text file couldn't be previewed. Please download it to view the content.

{% elif is_archive_file and archive_contents %}

Archive Contents

{{ archive_contents.type|upper }} archive preview
{% for file in archive_contents.files %}
{% if file.type == 'directory' %} {% else %} {% endif %} {{ file.name }}
{% if file.type != 'directory' %} {{ "%.1f"|format(file.size / 1024) }} KB {% if file.compressed_size %} {{ "%.1f%%"|format((1 - file.compressed_size / file.size) * 100) }} compressed {% endif %} {% endif %} {% if file.date_time %} {{ "%04d-%02d-%02d"|format(file.date_time[0], file.date_time[1], file.date_time[2]) }} {% endif %}
{% endfor %}

Archive contains {{ archive_contents.files|length }} items. Download to extract files.

{% set total_files = archive_contents.files|selectattr('type', 'equalto', 'file')|list|length %} {% set total_dirs = archive_contents.files|selectattr('type', 'equalto', 'directory')|list|length %} {{ total_files }} files {% if total_dirs > 0 %} {{ total_dirs }} folders {% endif %}
{% elif is_archive_file %}

Archive Preview Not Available

This archive file couldn't be previewed. Please download it to view the contents.

{% else %}

Binary File

This file cannot be previewed. Click the download button above to get the file.

{% endif %}