打印/下载
使用

引入

from app.library.Down import Down

Blob 二进制文件下载


dirRoot = 'upload/'

def downFile(self):
  # 参数
  req = self.request()
  path = req.get('path').strip()
  filename = req.get('filename').strip()
  if not path or not filename : return None
  # 文件流
  return Down().fileBlob(self.dirRoot+path,filename)
{{copy}}