1
0

Fixed error when setting max file size on 32-Bit systems

This commit is contained in:
kolaente
2019-10-18 17:30:25 +02:00
parent 2169464983
commit b81cd6128a
19 changed files with 369 additions and 16 deletions

View File

@ -47,7 +47,7 @@ func (TaskAttachment) TableName() string {
// NewAttachment creates a new task attachment
// Note: I'm not sure if only accepting an io.ReadCloser and not an afero.File or os.File instead is a good way of doing things.
func (ta *TaskAttachment) NewAttachment(f io.ReadCloser, realname string, realsize int64, a web.Auth) error {
func (ta *TaskAttachment) NewAttachment(f io.ReadCloser, realname string, realsize uint64, a web.Auth) error {
// Store the file
file, err := files.Create(f, realname, realsize, a)