Fetching image from Wordpress media folder
I'm trying to fetch image from Wordpress media library such as..
echo fetch_image_tag("http://www.live2d.com/wp/wp-content/uploads/2016/10/8a7ace3e9b7f8b77404769586178ce7b.png");
but browser returns "Failed to load resource: the server responded with a status of 400 (Bad Request) " and "Failed to load resource: the server responded with a status of 401 (Unautorized)" error.
I'm using other cloudinary account for other site and it's working fine. But only this site (or could be this cloudinary account?) tells me this error.
I went to setting -> security and unchecked "Fetched URL" from Restricted Image Types but it didn't solve this problem.
Please let me know how to fix this.
-
When experiencing errors, Cloudinary always returns the error response as part of the HTTP response headers, under the `X-Cld-Error` header.
Specifically, the referred image is 10.3 MB, in case you're on the Free plan, the default file size limit is 10MB, and therefore you may be returned with:
X-Cld-Error: File size too large. Got 10805679. Maximum is 10485760.
If this isn't the case, please share the generated Cloudinary URL, and we'll be happy to take a deeper look.
Please sign in to leave a comment.
Comments
1 comment