|
|
|
@@ -286,7 +286,6 @@ func GetAttachment(ctx *context.Context) { |
|
|
|
return |
|
|
|
} |
|
|
|
defer fr.Close() |
|
|
|
log.Info("go here to download.") |
|
|
|
if err = increaseDownloadCount(attach, dataSet); err != nil { |
|
|
|
ctx.ServerError("Update", err) |
|
|
|
return |
|
|
|
@@ -673,6 +672,7 @@ func PutOBSProxyUpload(ctx *context.Context) { |
|
|
|
fileName := ctx.Query("file_name") |
|
|
|
|
|
|
|
RequestBody := ctx.Req.Body() |
|
|
|
|
|
|
|
if RequestBody == nil { |
|
|
|
ctx.Error(500, fmt.Sprintf("FormFile: %v", RequestBody)) |
|
|
|
return |
|
|
|
|