mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
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:
parent
a7d616e158
commit
d9640031df
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user