|
|
@ -11,6 +11,7 @@ import ( |
|
|
|
"io/ioutil" |
|
|
|
"io/ioutil" |
|
|
|
"net/http" |
|
|
|
"net/http" |
|
|
|
"net/url" |
|
|
|
"net/url" |
|
|
|
|
|
|
|
"os" |
|
|
|
"strings" |
|
|
|
"strings" |
|
|
|
"time" |
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
|
@ -724,6 +725,7 @@ func uploadFiles(ctx *middleware.Context, issueId, commentId int64) { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
os.MkdirAll(setting.AttachmentPath, os.ModePerm) |
|
|
|
out, err := ioutil.TempFile(setting.AttachmentPath, "attachment_") |
|
|
|
out, err := ioutil.TempFile(setting.AttachmentPath, "attachment_") |
|
|
|
|
|
|
|
|
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|