keystone-classic
keystone-classic copied to clipboard
Keystone js File storage capabilities...
How can we auto set an image using keystone 4? . For example if i have a model name Person and person has name , age , and profile pic . Now instead of manually uploading profile Pic . I have created a feature where data is being uploaded from csv , csv contains name , age and profile pic URL . Now I want to set that profile pic URL automatically is that possible in keystone 4? so that i no longer manually upload picture or set automati image from local file
What I did is an http request to the URL, download the file on your server and set it on your profile Model... but how can we set it through the model ?
Hi, in your case, why do you not simply store the profile picture as an URL instead of downloading it and re-storing it? Moreover, your not responsible anymore for the good availability of the file!
Maybe because he needs a server copy of those files that in case that the source of the url no longer exist at least he would still have a copy.