Skip to content

Commit a5622c8

Browse files
authored
Update cloudinary.ts
1 parent 6e9a64c commit a5622c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/cloudinary.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const uploadMedia = async (
4343
const formData = new FormData();
4444
formData.append('file', file);
4545
formData.append('upload_preset', preset); // Cloudinary upload preset
46+
formData.append('resource_type', uploadType); // <-- added for video support
4647

4748
const uploadUrl = `https://api.cloudinary.com/v1_1/${process.env.CLOUDINARY_NAME || 'dadpq7jsl'}/${uploadType}/upload`;
4849

0 commit comments

Comments
 (0)