本文实例为大家分享了python3-flask文件上传操作的具体代码,供大家参考,具体内容如下
# -*- coding: utf-8 -*-
import os
import uuid
import platform
from flask import Flask,request,redirect,url_for
from werkzeug.utils import secure_filename
if platform.system() == "Windows":
slash = '\\'
else:
platform.system()=="Linux"
slash = '/
1