Skip to content

Commit 551ec45

Browse files
moved MIME type to another section; added where this metadata should be specified
This "error" isn't a common error, so a warning about it doesn't really belong in the uber quickstart section. But, it seems that we're collecting a few "be aware of this or that" items, so it's better if we collect these into a specific section of the instructions doc.
1 parent 86b4cd4 commit 551ec45

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

storage-resize-images/POSTINSTALL.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ You can test out this extension right away:
44

55
1. Go to your [Storage dashboard](https://console.firebase.google.com/project/${param:PROJECT_ID}/storage).
66

7-
1. Upload an image file to the bucket: `${param:IMG_BUCKET}`. The file must have a valid [image MIME Type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#Image_types), for example `image/png`.
7+
1. Upload an image file to the bucket: `${param:IMG_BUCKET}`
88

99
1. In a few seconds, the resized image(s) appear in the same bucket.
1010

@@ -29,7 +29,11 @@ The extension also copies the following metadata, if present, from the original
2929
- [`Content-Type`](https://developer.mozilla.org/docs/Web/HTTP/Headers/Content-Type)
3030
- [user-provided metadata](https://cloud.google.com/storage/docs/metadata#custom-metadata) (except Firebase storage download tokens)
3131

32-
Note that if you configured the `Cache-Control header for resized images` param, the specified value will overwrite the value copied from the original image. Learn more about image metadata in the [Cloud Storage documentation](https://firebase.google.com/docs/storage/).
32+
Be aware of the following when using this extension:
33+
34+
- Each original image must have a valid [image MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#Image_types) specified in its [`Content-Type` metadata](https://developer.mozilla.org/docs/Web/HTTP/Headers/Content-Type) (for example, `image/png`).
35+
36+
- If you configured the `Cache-Control header for resized images` param, the specified value will overwrite the value copied from the original image. Learn more about image metadata in the [Cloud Storage documentation](https://firebase.google.com/docs/storage/).
3337

3438
### Monitoring
3539

0 commit comments

Comments
 (0)