I get Invalid URI error when uploading some images
AnsweredI get the following error when uploading some images:
Error in loading http://www.thebellhouseny.com/uploads/4703.benk[3]web.jpg - Invalid URI
The URL is valid and I am able to see the image in the browser.
Thanks,
Ilya
-
Hi Ilya,
The issue you're experiencing is happening because of the presence of invalid URL characters ( in your case '[' and ']' ),Uploading works without a hitch with legal-character-URLs.
In order to make it work with special characters like yours, these characters should be escaped,
So your original URL:
http://www.thebellhouseny.com/uploads/4703.benk[3]web.jpg
Should be entered as:
http://www.thebellhouseny.com/uploads/4703.benk%5B3%5Dweb.jpg
For example, in Ruby:
Cloudinary::Uploader.upload("http://www.thebellhouseny.com/uploads/4703.benk%5B3%5Dweb.jpg")We are working on enhancing our service to be more lenient and correctly process URLs with invalid characters
If you are using Cloudinary's 'fetch' URLs, make sure to double escape your URL. For example:
http://res.cloudinary.com/demo/image/fetch/http://www.thebellhouseny.com/uploads/4703.benk%255B3%255Dweb.jpgThanks,
Itay
0
Post is closed for comments.
Comments
1 comment