Open rlnorthcutt opened 5 years ago
The unsplash "integration" just pulls the file from source.unsplash.com - no payload coming through with additional info, just the raw file. It may have exif info but that might vary from image to image.
I was thinking of uploaded files. Even with unsplash integration, we still need to upload images for custom demos.
I assume that getting some data from unsplash from the API is possible, but would be another ticket.
For the Title part, that field in the media world is called "Name" - so names in media are analogous to titles in nodes. They're the label.
Some ideas: Fancy type of ajax that updates the field post-image upload? OR We hide the title and set it automatically always based on the filename? OR We could just make the label optional via hook_form_alter and then, populate it during hook_entity_presave?
We still don't have an agreed upon solution for auto-populating the title. Its a required field at the moment.
I like option 1 (fancy ajax) best. I thought Sam had done something like this before in DF, but we lost it or got rid of it at some point. Does that sound familiar?
I'm not familiar with anything like that in DF before so this would be something new?
When adding image media, we should use the filename to pre-populate text fields as possible. This way, an SA can upload/add an image, and then click save - the default fields are filled out and its much faster/simpler.
Can we pull any additional metadata (like tags) for the Unsplash integration?