Fixed error when setting max file size on 32-Bit systems
This commit is contained in:
@ -28,7 +28,7 @@ type vikunjaInfos struct {
|
||||
FrontendURL string `json:"frontend_url"`
|
||||
Motd string `json:"motd"`
|
||||
LinkSharingEnabled bool `json:"link_sharing_enabled"`
|
||||
MaxFileSize int64 `json:"max_file_size"`
|
||||
MaxFileSize string `json:"max_file_size"`
|
||||
}
|
||||
|
||||
// Info is the handler to get infos about this vikunja instance
|
||||
@ -44,6 +44,6 @@ func Info(c echo.Context) error {
|
||||
FrontendURL: config.ServiceFrontendurl.GetString(),
|
||||
Motd: config.ServiceMotd.GetString(),
|
||||
LinkSharingEnabled: config.ServiceEnableLinkSharing.GetBool(),
|
||||
MaxFileSize: config.FilesMaxSize.GetInt64(),
|
||||
MaxFileSize: config.FilesMaxSize.GetString(),
|
||||
})
|
||||
}
|
||||
|
@ -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 New Issue
Block a user