dever 7 years ago
parent
commit
40fda7c25b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      front/api/main.py

+ 2 - 2
front/api/main.py

@@ -382,6 +382,6 @@ class down_path(Load):
 			self.out('没有权限下载')
 
 		self.set_header ('Content-Type', 'application/octet-stream')
-		self.set_header ('Content-Disposition', 'attachment; filename='+file['local'])
-		content = File.readContent(file['local'])
+		self.set_header ('Content-Disposition', 'attachment; filename='+file['name']+file['ext'])
+		content = File.read(file['local'])
 		self.write(content)