Skip to content

Commit 6055688

Browse files
authored
fix(blob): missing content type on complete for multipart upload (#517)
1 parent c666b9c commit 6055688

File tree

1 file changed

+1
-1
lines changed
  • src/runtime/blob/server/utils

1 file changed

+1
-1
lines changed

src/runtime/blob/server/utils/blob.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ function getContentType(pathOrExtension?: string) {
645645
function mapR2ObjectToBlob(object: R2Object): BlobObject {
646646
return {
647647
pathname: object.key,
648-
contentType: object.httpMetadata?.contentType,
648+
contentType: object.httpMetadata?.contentType || getContentType(object.key),
649649
size: object.size,
650650
httpEtag: object.httpEtag,
651651
uploadedAt: object.uploaded,

0 commit comments

Comments
 (0)