|
|
@@ -6,7 +6,7 @@ app = Flask(__name__)
|
|
|
app.config['UPLOAD_FOLDER'] = 'uploads' # 替换为你的上传文件夹路径
|
|
|
|
|
|
|
|
|
-@app.route('/upload', methods=['POST'])
|
|
|
+@app.route('/api/upload', methods=['POST'])
|
|
|
def upload_file():
|
|
|
if 'file' not in request.files:
|
|
|
return "No file part"
|