diff --git a/http/filestream/filestream.go b/http/filestream/filestream.go index 3e00549..ac9975e 100644 --- a/http/filestream/filestream.go +++ b/http/filestream/filestream.go @@ -73,6 +73,7 @@ func WriteFilesToStream(multipartWriter *multipart.Writer, filesList []*FileInfo defer ioutils.Close(multipartWriter, &err) for _, file := range filesList { if err = writeFile(multipartWriter, file); err != nil { + // Returning the error from writeFile with a possible error from the writeErr function return errors.Join(err, writeErr(multipartWriter, file, err)) } }