diff --git a/src/utils/provider.ts b/src/utils/provider.ts index 297eb5c16..c2bd097c4 100644 --- a/src/utils/provider.ts +++ b/src/utils/provider.ts @@ -28,7 +28,7 @@ export async function fileinfo( const { contentLength, contentType } = response.data[0] return { - contentLength, + contentLength: contentLength || '', contentType: contentType || '', // need to do that cause lib-js File interface requires contentType url }