Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keystone js File storage capabilities... #4963

Open
Rajivkumar1234 opened this issue Aug 29, 2019 · 2 comments
Open

Keystone js File storage capabilities... #4963

Rajivkumar1234 opened this issue Aug 29, 2019 · 2 comments

Comments

@Rajivkumar1234
Copy link

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 ?

@aleygues
Copy link

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!

@jelordreygulle
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants