Displaying Upload Errors
I understand that I can catch the upload errors with fileuploadfail and have read the answer to https://support.cloudinary.com/hc/en-us/community/posts/115000867112-Catching-upload-errors?input_string=Displaying%20Upload%20Errors
However, I am using the jQuery uploader on a multi-lingual site and therefore do not want to display the returned Cloudinary error in English to users viewing the site in a different language.
Can you provide a list of possible messages which could be returned by this event - I can then write my own versions of these messages to display to the users.
-
Official comment
Thank you for contacting us!
Unfortunately, we have a lot of error messages and some of them are customized for example: "File size too large. Got 108573432. Maximum is 104857600."
One option is to use a third party tool like google translate.
Please let me know if it answers your question,
Comment actions -
Hi Niina,
Some popular messages can be:
Missing required parameter - <parameter>
Invalid api_key <api_key>
Invalid cloud_name <cloud_name>
Invalid Signature <signature>. String to sign - '<to_sign_string>'.
Stale request - reported time is <time> which is more than 1 hour agoHowever, please note that we have more messages and we don't have them all in one place that we can easily share.
Best,
-
THank you - most of those common errors would affect me uploading at any point, so once it is working can be ignored
At the moment, I am just looking for 'stale request' and 'file size' as ones to report back to users of the site (and a general warning to try again for anything else!)
Post is closed for comments.
Comments
5 comments