diff --git a/pkg/api/router.go b/pkg/api/router.go index 7c854543b88..351608a5e16 100644 --- a/pkg/api/router.go +++ b/pkg/api/router.go @@ -220,7 +220,7 @@ func (s *Service) mountAPI() { handle("/chunks", jsonhttp.MethodHandler{ "POST": web.ChainHandlers( - jsonhttp.NewMaxBodyBytesHandler(swarm.ChunkWithSpanSize), + jsonhttp.NewMaxBodyBytesHandler(swarm.SocMaxChunkSize), web.FinalHandlerFunc(s.chunkUploadHandler), ), })