Use upload_chunked_stream instead if upload_stream

Cloudinary limits the filesize to 100 MB when uploading in a single request:
https://cloudinary.com/documentation/upload_images#chunked_asset_upload

Larger files must be uploaded in chunks.

Use the upload_chunked_stream to upload all files in chunks. This works for small files just as well.

Closes #16601
This commit is contained in:
Jen Tak 2023-05-04 19:19:28 +02:00 committed by GitHub
parent a7d616e158
commit d9640031df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ export = {
config.folder = file.path;
}
const uploadStream = cloudinary.uploader.upload_stream(
const uploadStream = cloudinary.uploader.upload_chunked_stream(
{ ...config, ...customConfig },
(err, image) => {
if (err) {