Browse Source

download link

tags/v1.22.2.2^2
lewis 3 years ago
parent
commit
11bacb83e2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/attachment.go

+ 1
- 1
models/attachment.go View File

@@ -97,7 +97,7 @@ func (a *Attachment) DownloadURL() string {
return fmt.Sprintf("%sattachments/%s?type=%d", setting.AppURL, a.UUID, a.Type)
}

// DownloadURL returns the download url of the attached file
// S3DownloadURL returns the s3 download url of the attached file
func (a *Attachment) S3DownloadURL() string {
url := ""
if a.Type == TypeCloudBrainOne {


Loading…
Cancel
Save