You can indeed upload remote images via their HTTP/HTTPS URLs when access to those URLs requires the use of a proxy server.
When uploading images to Cloudinary, you can set the proxy
parameter in Cloudinary's upload API call.
The format of the parameter should be http://username:password@host:port
. When connecting to the remote URL, we'll do so using the specified proxy details.
Comments
2 comments
Hello Itay, I'm making this call via postmaster with an API running on vscode. Where do I set the parameter mentioned above?
Hi Uche,
The 'proxy' can be set in the upload API call alongside any other parameters you are passing like 'public_id' or 'folder'. However, it's important to note that any value you pass in the 'proxy' field won't be used by default. This is because for security reasons Cloudinary has to whitelist the proxy before it can be used. This process is currently available for our paid plans. I will add a note on our side to update this article to reflect this.
In your case, it could be that you don't actually need to use this parameter and there is a better way around the issue you are seeing.
In order to help with this, may I please ask you for more details on your workflow, such as -
If you would like, you can share these details here, or alternatively, you can submit a ticket with us directly by going to - https://support.cloudinary.com/hc/en-us/requests/new
Please sign in to leave a comment.