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

Error: {{ error }}

{% else %} {% if step_summary %}
Status
{% set main_completed = step_summary.main.success + step_summary.main.skipped %} {% set uploads_completed = step_summary.uploads.success + step_summary.uploads.skipped %} {% if file.is_duplicate %} Duplicate {% elif step_summary.main.failure > 0 or step_summary.uploads.failure > 0 %} Failed {% elif step_summary.main["in_progress"] > 0 or step_summary.uploads["in_progress"] > 0 %} Processing {% elif step_summary.total_main_steps > 0 and main_completed == step_summary.total_main_steps and step_summary.main.failure == 0 %} Completed {% else %} Pending {% endif %}
Main Steps
{% set main_completed = step_summary.main.success + step_summary.main.skipped %} {% if main_completed == step_summary.total_main_steps and step_summary.main.failure == 0 %} {{ main_completed }}/{{ step_summary.total_main_steps }} {% else %} {{ main_completed }}/{{ step_summary.total_main_steps }} {% endif %}
Uploads
{% set uploads_completed = step_summary.uploads.success + step_summary.uploads.skipped %} {% if uploads_completed == step_summary.total_upload_tasks and step_summary.uploads.failure == 0 and step_summary.total_upload_tasks > 0 %} {{ uploads_completed }}/{{ step_summary.total_upload_tasks }} {% else %} {{ uploads_completed }}/{{ step_summary.total_upload_tasks }} {% endif %}
{% endif %}

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' }}
Processing Pipeline {% if pipeline_info %} {{ pipeline_info.name }} {% if not pipeline_info.is_explicit and pipeline_info.is_system %} System Default {% elif pipeline_info.is_system %} System {% else %} Custom {% endif %} {% else %} Standard (legacy) {% endif %}
Original File Path {{ file.original_file_path if file.original_file_path else 'N/A' }}
Original File Status {% if original_file_exists %} File exists {% else %} File not found {% endif %}
Processed File Path {{ file.processed_file_path if file.processed_file_path else 'N/A' }}
Processed File Status {% if processed_file_exists %} File exists {% else %} File not found {% endif %}
{% if gpt_metadata %}

Extracted Metadata (GPT)

{% if gpt_metadata.document_type %}
Document Type {{ gpt_metadata.document_type }}
{% endif %} {% if gpt_metadata.filename %}
Suggested Filename {{ gpt_metadata.filename }}
{% endif %} {% if gpt_metadata.date %}
Document Date {{ gpt_metadata.date }}
{% endif %} {% if gpt_metadata.absender %}
Sender (Absender) {{ gpt_metadata.absender }}
{% endif %} {% if gpt_metadata.empfaenger %}
Recipient (Empfänger) {{ gpt_metadata.empfaenger }}
{% endif %} {% if gpt_metadata.betrag %}
Amount (Betrag) {{ gpt_metadata.betrag }}
{% endif %} {% if gpt_metadata.kontonummer %}
Account Number {{ gpt_metadata.kontonummer }}
{% endif %} {% if gpt_metadata.tags %}
Tags {% if gpt_metadata.tags is string %} {{ gpt_metadata.tags }} {% else %} {{ ', '.join(gpt_metadata.tags) }} {% endif %}
{% endif %}
{% endif %}

Document Previews

Original Document

{% if original_file_exists %}
Loading...

Loading PDF...

{% else %}

Original file not available

{% endif %}

Processed Document

{% if processed_file_exists %}
Loading...

Loading PDF...

{% else %}

Processed file not available yet

{% endif %}
{% if step_summary %}

Processing Status Summary

Main Processing Steps
{% set main_completed = step_summary.main.success + step_summary.main.skipped %} {% if main_completed > 0 %}
{{ main_completed }} Success
{% endif %} {% if step_summary.main.failure > 0 %}
{{ step_summary.main.failure }} Failed
{% endif %} {% if step_summary.main.in_progress > 0 %}
{{ step_summary.main.in_progress }} In Progress
{% endif %} {% if step_summary.main.queued > 0 %}
{{ step_summary.main.queued }} Queued
{% endif %}
{% if step_summary.total_upload_tasks > 0 %}
Upload Destinations
{% set uploads_completed = step_summary.uploads.success + step_summary.uploads.skipped %} {% if uploads_completed > 0 %}
{{ uploads_completed }} Success
{% endif %} {% if step_summary.uploads.failure > 0 %}
{{ step_summary.uploads.failure }} Failed
{% endif %} {% if step_summary.uploads.in_progress > 0 %}
{{ step_summary.uploads.in_progress }} In Progress
{% endif %} {% if step_summary.uploads.queued > 0 %}
{{ step_summary.uploads.queued }} Queued
{% endif %}
{% endif %}
{% endif %}

Processing History

{% if file_exists %} {% endif %}
{% if logs %}
View Full Processing Logs ({{ logs|length }} entries)
{% 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 %}
{% if log.detail %}
Show worker log detail
{{ log.detail }}
{% 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 in ['pending', 'queued'] %} {% else %}{% endif %}
{{ stage.label }}
{% if stage.message %}
{{ stage.message }}
{% endif %} {% if stage.status == 'not_run' %}
Not executed
{% endif %} {% if stage.can_retry and stage.status == 'failure' %} {% endif %} {% if stage.timestamp %}
{{ stage.timestamp.strftime('%Y-%m-%d %H:%M:%S') }}
{% endif %}
{% if stage.is_branch_parent and stage.branches %}
{% for branch in stage.branches %}
{% if branch.status == 'success' %} {% elif branch.status == 'failure' %} {% elif branch.status == 'in_progress' %} {% else %}{% endif %}
{{ branch.label }} {% if branch.can_retry and branch.status == 'failure' %} {% endif %}
{% if branch.message %}
{{ branch.message }}
{% endif %} {% if branch.timestamp %}
{{ branch.timestamp.strftime('%Y-%m-%d %H:%M:%S') }}
{% endif %}
{% endfor %}
{% endif %} {% if not loop.last %}
{% endif %} {% endfor %}
{% endif %}

Similar Documents

Searching for similar documents…

{% if original_file_exists or processed_file_exists %}

File Previews

{% if original_file_exists %}

Original File

{% if file.mime_type and file.mime_type.startswith('image/') %} {{ file.original_filename }} {% elif file.mime_type and file.mime_type.startswith('text/') %} {% else %}

This PDF is displayed in the Document Previews section at the top of the page.

{% endif %}
Open in new tab Download
{% endif %} {% if processed_file_exists %}

Processed File

This PDF is displayed in the Document Previews section at the top of the page.

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