Reputation: 6171
See https://firebase.google.com/docs/storage/web/file-metadata#file_metadata_properties
I tried just setting it to bob
to see if it did anything.
Nope, when upload finishes, it seems to be set to the actual file hash.
I could imagine a world where if the provided md5Hash doesn't match the file contents the upload fails – but that doesn't seem to be the case either.
Help?
Upvotes: 0
Views: 80
Reputation: 404
[Firebase Storage Web SDK dev here]
I could imagine a world where if the provided md5Hash doesn't match the file contents the upload fails – but that doesn't seem to be the case either.
Yeah, that's the idea. We built the SDK to support that, but the hash verification functionality isn't currently implemented.
As you observed, setting the md5Hash
property doesn't do anything (at time of writing).
Upvotes: 2