File size: 1,236 Bytes
59416c7
 
1f85ff0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59416c7
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
26
27
28
29
30
31
<!DOCTYPE html>
<html>
<head>
    <title>้ฆ–้กต</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width">
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <h1>ๅ›พๅƒ้ฃŽๆ ผ่ฟ็งปโ€”โ€”ๅก้€šๅŒ–ๅ็”ป</h1>
    <!--ไธŠไผ ๆ–‡ไปถๅฟ…้กปๅŠ enctype="multipart/form-data-->
    <form action="/" method="post" enctype="multipart/form-data">
       ้ฃŽๆ ผๅ›พ1: <input type="file" name="image1" accept="image/*">
       ้ฃŽๆ ผๅ›พ2: <input type="file" name="image2" accept="image/*">
        <input type="submit"  name="submit" value="ไธŠไผ ">
    </form>
   <!-- <img src="static/2.jpg">  -->
    <h1>ๅค„็†ๅ‰็š„ๅ›พ็‰‡๏ผš</h1>
     <img src="{{ url_for('static', filename=filename1 ) }}" alt="ๅค„็†ๅ‰็š„ๅ›พ็‰‡1">
    <img src="{{ url_for('static', filename=filename2 ) }}" alt="ๅค„็†ๅ‰็š„ๅ›พ็‰‡2">
    <h1>ๅค„็†ๅŽ็š„ๅ›พ็‰‡๏ผš</h1>
    <!-- <img src="{{ url_for('static', filename='uploads/image_path' ) }}" alt="ๅค„็†ๅŽ็š„ๅ›พ็‰‡">
   -->
    <img src="{{ url_for('static', filename=image_path ) }}" alt="ๅค„็†ๅŽ็š„ๅ›พ็‰‡">
    <br>
    {% if image_path %}
    <a href="{{ url_for('static', filename=image_path) }} " download>็‚นๅ‡ปไธ‹่ฝฝ็”Ÿๆˆ็š„ๅ›พ็‰‡</a>
    {% endif %}
</body>
</html>