{% extends "base.html" %} {% block title %}File Info: {{ file.filename }} - NoteParser{% endblock %} {% block extra_head %} {% endblock %} {% block content %}

{{ file.filename }}

Detailed file information and processing status

Basic Information

Filename
{{ file.filename }}
File Type
{{ file.mime_type or file.file_type.upper() }}
File Size
{{ (file.size / 1024 / 1024) | round(2) }} MB ({{ file.size | format_number }} bytes)
Content Hash
{{ file.content_hash[:16] }}...
Upload Date
{{ file.created_at.strftime('%A, %B %d, %Y at %I:%M %p') }}
Last Modified
{{ file.updated_at.strftime('%A, %B %d, %Y at %I:%M %p') }}

Processing Status

{{ file.status.title() }}
File Uploaded
{{ file.created_at.strftime('%Y-%m-%d %H:%M:%S') }}
{% if file.status in ['completed', 'processing', 'failed'] %}
Processing Started
{{ file.processed_at.strftime('%Y-%m-%d %H:%M:%S') if file.processed_at else 'In progress...' }}
Basic document conversion and text extraction
{% endif %} {% if file.ai_processed %}
AI Analysis Completed
{{ ai_processing_time or 'Recently' }}
Entity extraction, summarization, and semantic analysis
{% elif file.status == 'completed' and not file.ai_processed %}
AI Analysis Pending
Waiting in queue
Advanced AI processing not yet started
{% elif file.status == 'failed' %}
Processing Failed
{{ file.processed_at.strftime('%Y-%m-%d %H:%M:%S') if file.processed_at else 'Recently' }}
An error occurred during processing
{% endif %}
{% if ai_analysis %}

AI Insights

{% if ai_analysis.summary %}
Document Summary
{{ ai_analysis.summary }}
{% endif %} {% if ai_analysis.entities %}
Extracted Entities ({{ ai_analysis.entities|length }})
{% for entity in ai_analysis.entities[:15] %} {{ entity.text }} {% endfor %} {% if ai_analysis.entities|length > 15 %} +{{ ai_analysis.entities|length - 15 }} more {% endif %}
{% endif %} {% if ai_analysis.key_phrases %}
Key Concepts ({{ ai_analysis.key_phrases|length }})
{% for phrase in ai_analysis.key_phrases[:10] %} {{ phrase.phrase }} {% endfor %} {% if ai_analysis.key_phrases|length > 10 %} +{{ ai_analysis.key_phrases|length - 10 }} more {% endif %}
{% endif %} {% if ai_analysis.topics %}
Topic Categories
{% for topic in ai_analysis.topics %} {{ topic.replace('_', ' ').title() }} {% endfor %}
{% endif %} {% if ai_analysis.readability %}
Readability Analysis
Reading Level:
{{ ai_analysis.readability.flesch_reading_ease | round(1) }}
Grade Level: {{ ai_analysis.readability.flesch_kincaid_grade | round(1) }} | Avg Sentence Length: {{ ai_analysis.readability.avg_sentence_length | round(1) }} words
{% endif %}
{% endif %}

Processing Details

{% if processing_results %} {% for result in processing_results %}
{{ result.service_name.title() }} - {{ result.processing_type.title() }}
{% if result.success %} Success ({{ result.processing_time | round(2) }}s) {% else %} Failed {{ result.error_message }} {% endif %}
{% endfor %} {% else %}
Processing Status
No detailed processing records available
{% endif %}
Content Length
{% if file.content %} {{ file.content | length | format_number }} characters {% else %} No content extracted {% endif %}
AI Processing
{% if file.ai_processed %} Completed {% else %} Pending {% endif %}
{% if related_files %}

Related Files

{% endif %} {% if file.status == 'failed' and error_details %}

Error Details

Processing Error: {{ error_details.message }}
{% if error_details.details %}
{{ error_details.details }}
{% endif %}
{% endif %}

Actions

View Content Download {% if file.status in ['failed', 'pending'] or not file.ai_processed %} {% endif %}
{% endblock %}