결과 엑셀 확장자를 .xls → .xlsx 로 변경
파일 내용은 openpyxl 로 작성된 xlsx 포맷이지만 확장자만 .xls 였던 것을 실제 포맷과 맞춰 .xlsx 로 정정. - 서버 다운로드 파일명 확장자 변경 - 프론트 fallback 파일명 변경 xls 파일을 "쓰는" 코드(xlwt 등)는 원래 없었음. xlrd 는 입력 파일(.xls) 을 "읽는" 용도라 유지. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -842,10 +842,10 @@ def upload_file(
|
||||
)
|
||||
excel_io.seek(0)
|
||||
|
||||
# 6. 다운로드 파일명: "MM월 DD일 (요일)_발주_(낱개 상품 출고).xls"
|
||||
# 6. 다운로드 파일명: "MM월 DD일 (요일)_발주_(낱개 상품 출고).xlsx"
|
||||
weekdays = ["월요일", "화요일", "수요일", "목요일", "금요일", "토요일", "일요일"]
|
||||
weekday_str = weekdays[order_date_dt.weekday()]
|
||||
filename = f"{order_date_dt.strftime('%m')}월 {order_date_dt.strftime('%d')}일 ({weekday_str})_발주_(낱개 상품 출고).xls"
|
||||
filename = f"{order_date_dt.strftime('%m')}월 {order_date_dt.strftime('%d')}일 ({weekday_str})_발주_(낱개 상품 출고).xlsx"
|
||||
encoded_filename = quote(filename)
|
||||
|
||||
headers = {
|
||||
|
||||
+1
-1
@@ -438,7 +438,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
});
|
||||
|
||||
if (response.ok) {
|
||||
let downloadFilename = '낱개상품출고.xls';
|
||||
let downloadFilename = '낱개상품출고.xlsx';
|
||||
const disposition = response.headers.get('Content-Disposition');
|
||||
if (disposition && disposition.indexOf('filename*=') !== -1) {
|
||||
const matches = disposition.split("filename*=UTF-8''");
|
||||
|
||||
Reference in New Issue
Block a user