修改主页,感觉还可以

This commit is contained in:
2025-12-27 13:35:20 +08:00
parent 7c94590c40
commit 8ca06abe4a
20 changed files with 353 additions and 337 deletions

View File

@@ -0,0 +1,19 @@
<title>上传文件</title>
上传文件
<br>
目前只支持jpg, jpeg, png, gif
<form id="upload-form" enctype="multipart/form-data" method="post" action="./">
<input type="file" name="img" required>
<button type="submit">上传文件</button>
</form>
<br>
<br>
已上传图片
<br>
<br>
<br>
{% for image in images %}
<a href="{{ url_for('static', filename='upload/img/' + image) }}">
<img src="{{ url_for('static', filename='upload/img/' + image) }}" style="width: 10%;" alt="{{ image }}">
</a>
{% endfor %}