mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
@@ -1,7 +1,6 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/photoprism/photoprism/internal/entity"
|
||||
@@ -76,8 +75,6 @@ func GetDownload(router *gin.RouterGroup) {
|
||||
downloadName = f.ShareBase()
|
||||
}
|
||||
|
||||
c.Header("Content-Disposition", fmt.Sprintf("attachment; filename=%s", downloadName))
|
||||
|
||||
c.File(fileName)
|
||||
c.FileAttachment(fileName, downloadName)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user