Is it possible to perform an asynchronous incoming transformation?
I am using the node.js SDK and would like to reduce / compress the file size of videos before uploading to the media library.
The Problem is that the files are quite large 100mb+ so require an `eager_async` transformation, I receive the error "Video is too large to process synchronously" when I perform an upload with incoming transformations.
However providing options in the upload call along with eager_async: true still gives me the same error. Can incoming transformations be performed asynchronously?
-
Hi Daryl,
We do have a solution for asynchronous incoming transformations via the Node.js SDK. However, it can currently only available via the GitHub's master branch. It will be present in the next released version.
In the meanwhile, you can install and use the master branch:
npm install cloudinary/cloudinary_npm#master.Once you have the master branch installed you can use the
async: trueparameter in your request and it should do the trick:cloudinary.uploader.upload_large("<file_path>", { resource_type: "video", width: 720, async: true, timeout: 1000000}, function(error, result) { console.log(result, error); });Hope this helps, please let me know if you have any further questions.
Best,
Yakir
0
Post is closed for comments.
Comments
1 comment