Fixed error when setting max file size on 32-Bit systems
This commit is contained in:
parent
2169464983
commit
b81cd6128a
19 changed files with 369 additions and 16 deletions
|
|
@ -82,7 +82,7 @@ func UploadTaskAttachment(c echo.Context) error {
|
|||
}
|
||||
defer f.Close()
|
||||
|
||||
err = ta.NewAttachment(f, file.Filename, file.Size, user)
|
||||
err = ta.NewAttachment(f, file.Filename, uint64(file.Size), user)
|
||||
if err != nil {
|
||||
r.Errors = append(r.Errors, handler.HandleHTTPError(err, c))
|
||||
continue
|
||||
|
|
|
|||
Reference in a new issue