{% extends "base.html" %} {% block title %}File Details{% endblock %} {% block head_extra %} {% endblock %} {% block content %}
Back to File List {% if error %}

Error: {{ error }}

{% else %}

File Information

File ID {{ file.id }}
Original Filename {{ file.original_filename }}
File Hash {{ file.filehash }}
File Size {{ (file.file_size / 1024) | round(2) }} KB ({{ file.file_size }} bytes)
MIME Type {{ file.mime_type or 'N/A' }}
Created At {{ file.created_at.strftime('%Y-%m-%d %H:%M:%S') if file.created_at else 'N/A' }}
Local Path {{ file.local_filename }}
File on Disk {% if file_exists %} File exists {% else %} File not found {% endif %}

Processing History

{% if file_exists %} {% endif %}
{% if logs %}
{% for log in logs %}
{{ log.step_name }} - {{ log.status }}
{% if log.message %}
{{ log.message }}
{% endif %}
{{ log.timestamp.strftime('%Y-%m-%d %H:%M:%S') if log.timestamp else 'N/A' }} {% if log.task_id %} Task: {{ log.task_id[:16] }}... {% endif %}
{% endfor %}
{% else %}

No processing logs found for this file.

The file may not have been processed yet.

{% endif %}
{% if flow_data %}

Process Flow Visualization

{% for stage in flow_data %}
{% if stage.status == 'success' %} {% elif stage.status == 'failure' %} {% elif stage.status == 'in_progress' %} {% elif stage.status == 'pending' %} {% else %}{% endif %}
{{ stage.label }}
{% if stage.message %}
{{ stage.message }}
{% endif %} {% if stage.status == 'not_run' %}
Not executed
{% endif %} {% if stage.timestamp %}
{{ stage.timestamp.strftime('%Y-%m-%d %H:%M:%S') }}
{% endif %}
{% if not loop.last %}
{% endif %} {% endfor %}
{% endif %} {% if file_exists or processed_exists %}

File Previews

{% if file_exists %}

Original File

Open in new tab
{% endif %} {% if processed_exists %}

Processed File

Open in new tab
{% endif %}
{% endif %} {% endif %}
{% endblock %}