We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6e9e7a commit 471b44cCopy full SHA for 471b44c
source/includes/fundamentals/code-snippets/gridfs.go
@@ -51,5 +51,10 @@ func main() {
51
panic(err)
52
}
53
fmt.Printf("New file uploaded with %d bytes written", bytes)
54
+
55
+ // Calls the Close() method to write file metadata
56
+ if err := uploadStream.Close(); err != nil {
57
+ panic(err)
58
+ }
59
// end OpenUploadStream example
60
0 commit comments