Closed fdelbos closed 2 years ago
Hi!
I want to set the content type of the file when i save it to cloud storage (ex: image/jpeg), but cant find the correct option for my call:
image/jpeg
wc, err := afs.New().NewWriter(ctx, dest, 0644)
(by the way thanks for this package, its awesome!)
You can use content.Meta option,
fs := New() wc, err := fs.NewWriter(ctx, dest, 0644, content.NewMeta(content.Type, "image/jpeg"))
Awesome! Thanks for the quick answer.
Hi!
I want to set the content type of the file when i save it to cloud storage (ex:
image/jpeg
), but cant find the correct option for my call:(by the way thanks for this package, its awesome!)