diff --git a/api/s5/http.go b/api/s5/http.go index cf84526..09d6d9b 100644 --- a/api/s5/http.go +++ b/api/s5/http.go @@ -170,7 +170,7 @@ func (h *HttpHandler) SmallFileUpload(jc jape.Context) { Hash: hex.EncodeToString(hash), Size: uint64(bufferSize), Protocol: "s5", - UserID: 0, + UserID: uint(jc.Request.Context().Value(AuthUserIDKey).(uint64)), }) if tx.Error != nil {