django StreamingHttpResponse下载文件 Content-Type 文件名中文乱码问题
from django.http import StreamingHttpResponse
def downloadFile(request):
download_name ='测试.docx'
the_file_name = str(download_name) # 显示在弹出对话框中的默认的下载文件名
filename = os.getcwd()+r'\templ...
原创
2019-05-02 23:58:45 ·
2121 阅读 ·
0 评论