I am attempting to upload an image to Webflow via the CMS Api. The collection item field is of type Image and the image is stored in Salesforce but referenced by a url.
The following url is an example of a url that is not accepted/processed by the CMS Api.
All other fields in the payload are accepted and reflected in the collection item. Other image urls are accepted by Webflow. For some reason Webflow does not like this Url even though it resolves to an image.
Is anyone aware why Webflow CMS Api is not be accepting this url?
Here is my site Read-Only: LINK
(how to share your site Read-Only link)
I’m pretty sure it will need to be a direct file link. As this downloads the file on when visited, there’s ether some serverside or JS happening to achieve that, so it won’t work with the API.
Your URL will need to not be one that auto-downloads the image.
Thanks for the reply. That makes sense to me.
When I open up my terminal and run curl on that first image, I get a 403 access denied error. That’s why the API can’t upload it to Webflow.
curl -I https://webflowcmsimages.nyc3.digitaloceanspaces.com/square-invoice-template-copy.jpg
date: Wed, 20 Jul 2022 15:09:37 GMT
vary: Origin, Access-Control-Request-Headers, Access-Control-Request-Method
strict-transport-security: max-age=15552000; includeSubDomains; preload