We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf25da3 commit 239c00bCopy full SHA for 239c00b
png.py
@@ -0,0 +1,17 @@
1
+'''
2
+Author: LetMeFly
3
+Date: 2023-10-20 10:00:08
4
+LastEditors: LetMeFly
5
+LastEditTime: 2023-10-20 10:20:27
6
7
+from flask import send_file, send_from_directory
8
+import flask
9
+
10
+app = flask.Flask('1')
11
12
+@app.route("/a/")
13
+def download_file():
14
+ return send_file(r"C:\Users\LetMeFly\Desktop\image.png", 'a.png', as_attachment=True)
15
16
+print(app.url_map)
17
+app.run(host='0.0.0.0', port='80', debug=True)
0 commit comments