|
|
@@ -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 { |
|
|
|