diff --git a/api/rest/client/methods.go b/api/rest/client/methods.go index f919b34a..cf234703 100644 --- a/api/rest/client/methods.go +++ b/api/rest/client/methods.go @@ -428,6 +428,9 @@ func (c *defaultClient) AddMultiFile( headers := make(map[string]string) headers["Content-Type"] = "multipart/form-data; boundary=" + multiFileR.Boundary() + + // This method must run with StreamChannels set. + params.StreamChannels = true queryStr := params.ToQueryString() // our handler decodes an AddedOutput and puts it diff --git a/api/rest/client/methods_test.go b/api/rest/client/methods_test.go index cbda4a4e..038980a1 100644 --- a/api/rest/client/methods_test.go +++ b/api/rest/client/methods_test.go @@ -448,11 +448,12 @@ func TestAddMultiFile(t *testing.T) { Name: "test something", ShardSize: 1024, }, - Shard: false, - Layout: "", - Chunker: "", - RawLeaves: false, - Hidden: false, + Shard: false, + Layout: "", + Chunker: "", + RawLeaves: false, + Hidden: false, + StreamChannels: true, } out := make(chan *types.AddedOutput, 1)