How can I increase the timeout when uploading to Cloudinary?

You can add the timeout parameter to your upload call to override the maximum amount of time to wait for a response from Cloudinary before the connection is terminated.

For example:

Rails:

Cloudinary::Uploader.upload('my_image.jpg', timeout:60)

PHP:

\Cloudinary.Uploader::upload('my_image.jpg', array("timeout" => 60));

IOS:

uploader upload:@"my_image.jpg"options:@{@"timeout": @"60"}]

.NET (global variable):

m_cloudinary.Api.Timeout = 60000;

Python:

uploader.upload("my_image.jpg", timeout=0.001)

UPDATE:

Node.js (v2):

cloudinary.v2.uploader.upload('my_image.jpg', {timeout:60000}, function(error,result){});
Have more questions? Submit a request

Comments

  • Avatar
    Digiphoto Entertainment Imaging

    Hi,

    How set this limit in .NET?

    Thanks

  • Avatar
    Nadav Ofir

    Changing the timeout on our .NET libraries is still not supported. Default value is 100000 milliseconds (=100 seconds).
    As the libraries currently use the WebRequest class for HTTP client, you can dive into the code to implement this on your own. We will update here once it becomes officially supported.

    UPDATE: customizing timeout within our .NET libraries is now supported as well.

  • Avatar
    Navjeet Sandhu

    Hey nadav, the node.js update that you just added has an error in syntax. The {timeout:60000} is supposed to come after the callback function

  • Avatar
    Nadav Ofir

    Hi Navjeet, this syntax relates to the .v2 syntax, e.g.:
    var cloudinary = require('cloudinary').v2;

Powered by Zendesk