Closed Frank3K closed 1 year ago
Patch coverage: 16.66
% and project coverage change: -3.49
:warning:
Comparison is base (
0d7e438
) 78.70% compared to head (3ddb3cd
) 75.22%.:exclamation: Current head 3ddb3cd differs from pull request most recent head 8ede666. Consider uploading reports for the commit 8ede666 to get more accurate results
:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Hi @Frank3K
Could you please sign your commits ? This is blocking PR for me. It's required by Strapi Community.
Thanks !
@Lith Thanks for reviewing. I've just signed the commit and force-pushed it.
Hi @Frank3K ! Your PR has been release in https://github.com/strapi-community/strapi-provider-upload-google-cloud-storage/releases/tag/4.10.2 ! Thx
Thank you 🎉
Which is required such that the getStream method on uploaded files (in Strapi 4) can be used.
Strapi 3
In Strapi 3 we could use the exposed file buffer to compute a (for example) md5 hash of the uploaded file:
Strapi 4
In Strapi 4 the
buffer
does not seem to be exposed anymore. Instead we find agetStream()
method which can be used to get a ReadStream of the file (source). This can be used to computed a md5 hash, but this requires generateFileName to be async-compatible.Sample md5 method for ReadStream: