Пример #1
0
 def get(self):
     submit = request.args["path"]
     uuid = submit.split(os.sep)[-1]
     name = Upload.get_name(uuid)
     if not name:
         return send_file(app.root_path + submit, as_attachment=True)
     return send_file(app.root_path + submit, as_attachment=True, attachment_filename=name)