Send uploaded image to third party system, return read-only cdned links
I have a requirement to allow a user to upload an image, but rather than store it as Umbraco media, the image is sent to a third party web service which takes the image and returns a set of urls that allow you to load the image from their CDN at different dimensions.
How might I create a datatype that would do this? The idea being a user could add content, upload the image, and then the content would only hold read-only url references (labels?) rather than the image itself.
You'll need to use Angular - take a look at this tutorial and see how you get on. There are also lots of github repositories of other peoples' examples that might help.
Send uploaded image to third party system, return read-only cdned links
I have a requirement to allow a user to upload an image, but rather than store it as Umbraco media, the image is sent to a third party web service which takes the image and returns a set of urls that allow you to load the image from their CDN at different dimensions.
How might I create a datatype that would do this? The idea being a user could add content, upload the image, and then the content would only hold read-only url references (labels?) rather than the image itself.
Hi Andrew,
You just need to create your own Property Editor.
You'll need to use Angular - take a look at this tutorial and see how you get on. There are also lots of github repositories of other peoples' examples that might help.
https://our.umbraco.org/documentation/tutorials/Creating-a-Property-Editor/
HTH
Steve
is working on a reply...