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 b9e8f82 commit 71efeceCopy full SHA for 71efece
source/includes/fundamentals/code-snippets/gridfs.go
@@ -52,5 +52,10 @@ func main() {
52
panic(err)
53
}
54
fmt.Printf("New file uploaded with %d bytes written", bytes)
55
+
56
+ // Calls the Close() method to write file metadata
57
+ if err := uploadStream.Close(); err != nil {
58
+ panic(err)
59
+ }
60
// end OpenUploadStream example
61
0 commit comments