Skip to content

Commit cc43b3d

Browse files
authored
Fix upload video resource type
1 parent 29cf700 commit cc43b3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/upload/src/uploader_utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export async function buildRequest(cloudinary: Cloudinary, action: string, { fil
1212
prefix: apiConfig.uploadPrefix,
1313
apiVersion,
1414
cloudName: apiConfig.cloudName,
15-
resourceType: defaultResourceType,
15+
resourceType: options["resource_type"] != null ? options["resource_type"] : defaultResourceType,
1616
action: action
1717
});
1818
const params = await process_request_params(apiConfig, options)

0 commit comments

Comments
 (0)