mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Fix: upload was marked canceled when small file uploaded
This commit is contained in:
@@ -22,7 +22,9 @@ func Download(c *gin.Context) {
|
||||
var service explorer.FileDownloadService
|
||||
if err := c.ShouldBindQuery(&service); err == nil {
|
||||
res := service.Download(ctx, c)
|
||||
c.JSON(200, res)
|
||||
if res.Code != 0 {
|
||||
c.JSON(200, res)
|
||||
}
|
||||
} else {
|
||||
c.JSON(200, ErrorResponse(err))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user