I’m looking for some example ruby code to import a profile image from a url.
Can you say more? What kind of URL? Topic? Post? User? Google?
What are you doing? What problem are you trying to solve?
1 Like
Normal url. Say a s3 public url.
We’re importing a bunch of google contacts for to communicate with for a chamber of commerce.
The chamber of commerce is people centric rather than business centric which is a large part of it’s success. The chamber has provided an image url for each contact.
We want the image url to be mapped to the profile image for each contact we import.
We’re doing the import via ruby.
Have a look at the importers in https://github.com/discourse/discourse/tree/master/script/import_scripts. Several of them handle avatars. The answerbase importer appears to read from a CSV, if that’s what you’re doing.
3 Likes