Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
af1f592a
authored
2025-07-17 13:23:42 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
FIX:文件名下划线
1 parent
e0d20435
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
af1f592
...
...
@@ -2024,7 +2024,7 @@ class InvoiceExcelView(GenericView):
download_file_name
=
"发票信息提取-"
+
current_time
+
".xlsx"
f
=
open
(
file_path
,
"rb"
)
response
=
HttpResponse
(
content_type
=
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
)
response
[
'Content-Disposition'
]
=
'attachment; filename=
"{0}"
'
.
format
(
escape_uri_path
(
download_file_name
))
response
[
'Content-Disposition'
]
=
'attachment; filename=
{0}
'
.
format
(
escape_uri_path
(
download_file_name
))
response
[
'Access-Control-Expose-Headers'
]
=
'content-disposition'
response
.
write
(
f
.
read
())
f
.
close
()
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment