aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/templates/file_info.html
blob: 9e88c6422277bb4e069ab9642eb836b965082dc7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>File Info</title>
</head>
<body>
    <h1>File Info: {{ filename }}</h1>
    {% if file_type == 'image' %}
        <img src="{{ url_for('download_file', filename=filename) }}" alt="{{ filename }}">
    {% elif file_type == 'text' %}
        <iframe src="{{ url_for('download_file', filename=filename) }}" width="100%" height="600px"></iframe>
    {% elif file_type == 'zip' %}
        <h2>Contents of {{ filename }}:</h2>
        <ul>
            {% for item in zip_contents %}
                <li>{{ item }}</li>
            {% endfor %}
        </ul>
    {% else %}
        <p>Cannot display this file type.</p>
    {% endif %}
    <a href="{{ url_for('uploaded_files') }}">Back to files</a>
</body>
</html>