We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c666b9c commit 6055688Copy full SHA for 6055688
src/runtime/blob/server/utils/blob.ts
@@ -645,7 +645,7 @@ function getContentType(pathOrExtension?: string) {
645
function mapR2ObjectToBlob(object: R2Object): BlobObject {
646
return {
647
pathname: object.key,
648
- contentType: object.httpMetadata?.contentType,
+ contentType: object.httpMetadata?.contentType || getContentType(object.key),
649
size: object.size,
650
httpEtag: object.httpEtag,
651
uploadedAt: object.uploaded,
0 commit comments