19 lines
534 B
HTML
19 lines
534 B
HTML
<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 %} |