diff --git a/core/main.go b/core/main.go index d7e5526..fed6712 100644 --- a/core/main.go +++ b/core/main.go @@ -15,8 +15,14 @@ func Send(callback SendDataCallback, fileLocation string, randomNumber string) e if err != nil { return err } + s, err := f.Stat() + if err != nil { + return err + } + dataSize := s.Size() + err = SendData(callback, f, randomNumber, dataSize) return err }