How can I upload larger images?
I seem to be having trouble uploading any images > 1MB. For example the image at the below URL. I am using the ruby gem and am not able to get this to work even when I use the upload_large method or add a timeout. I consistently get the error: CloudinaryException: Error in loading https://www.net-a-porter.com/variants/images/1647597325988569/in/w1365_a3-4_q60.jpg - Timed out reading data from server
Cloudinary::Uploader.upload_large(url, folder: "#{Rails.env}/items")
https://www.net-a-porter.com/variants/images/1647597325988569/in/w1365_a3-4_q60.jpg
Answers
-
Hi @kaitlinoran,
The issue
Timed out reading data from server
means that Net-a-Porter is actually blocking server-side connections so we can't download the file directly like this. If you are the owner of this website, you can whitelist our user agentMozilla/5.0 (compatible; Cloudinary/1.0)
.Note that the
upload_large
method should be used for files larger than 100MB so in your case, this is unrelated to the error as mentioned above.Hope that helps.
Best,
Loic
0