Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fed5aa1599 |
2
.github/workflows/cross-compile.yaml
vendored
2
.github/workflows/cross-compile.yaml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go-version: [ 1.20.x ]
|
go-version: [ 1.19.x, 1.20.x ]
|
||||||
os: [ ubuntu-latest ]
|
os: [ ubuntu-latest ]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
|
|||||||
@@ -741,7 +741,7 @@ func getMultipleFilesDownloadResponse(session *models.Principal, params objectAp
|
|||||||
defer resp.Close()
|
defer resp.Close()
|
||||||
|
|
||||||
// indicate it's a download / inline content to the browser, and the size of the object
|
// indicate it's a download / inline content to the browser, and the size of the object
|
||||||
fileName := "selected_files_" + time.Now().UTC().Format(time.DateTime)
|
fileName := "selected_files_" + strings.ReplaceAll(strings.ReplaceAll(time.Now().UTC().Format(time.RFC3339), ":", ""), "-", "")
|
||||||
|
|
||||||
rw.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=\"%s.zip\"", fileName))
|
rw.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=\"%s.zip\"", fileName))
|
||||||
rw.Header().Set("Content-Type", "application/zip")
|
rw.Header().Set("Content-Type", "application/zip")
|
||||||
|
|||||||
Reference in New Issue
Block a user