|
|
@ -77,7 +77,11 @@ func (s DataSwampService) SaveFile(ref swampfile.FileReference, src io.Reader, s
|
|
|
|
return swampfile.ErrContentSizeExceeded
|
|
|
|
return swampfile.ErrContentSizeExceeded
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
f.Close()
|
|
|
|
err = f.Close()
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
panic(err)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
s.eventBus.Handle(*util.NewEvent("FileRecieved", struct {
|
|
|
|
s.eventBus.Handle(*util.NewEvent("FileRecieved", struct {
|
|
|
|
Name string
|
|
|
|
Name string
|
|
|
|
Size int64
|
|
|
|
Size int64
|
|
|
|