diff options
Diffstat (limited to 'templates/file_info.html')
| -rw-r--r-- | templates/file_info.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/file_info.html b/templates/file_info.html new file mode 100644 index 0000000..9e88c64 --- /dev/null +++ b/templates/file_info.html @@ -0,0 +1,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>
\ No newline at end of file |
