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

[Spike] Figure out image storage for Business images / logos #291

Open
magnificode opened this issue Jun 27, 2020 · 3 comments
Open

[Spike] Figure out image storage for Business images / logos #291

magnificode opened this issue Jun 27, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@magnificode
Copy link
Member

Spike

Need to explore Cloudinary / Airtable storage limits and how we pass images to cloudinary before storing them in Airtable.

@magnificode
Copy link
Member Author

@llexical similar to #290, this task may require a custom API hook into Airtable to allow us to build custom forms in favor of the Airtable iframe embeds. We could very easily use Cloudinary API hooks (with the help of @domitriusclark) to ingest an uploaded image, and return the Cloudinary Asset ID for storage in Airtable.

@llexical
Copy link
Contributor

Yeh I think we will have to use the Airtable API to hook in for this to work, we can make a lot of other stuff work, however image uploads we are not going to be able to do in anyway easily without hooking into the API ourselves so we can do the upload and then pass the identifier into Airtable.

@magnificode
Copy link
Member Author

@llexical once #297 is merged in, we should have full access to the Airtable API and the ability to customize the form fields however we see fit.

What I'm thinking here, is that we can create an upload input field, that onChange will call out to the Cloudinary API (with the help of @domitriusclark ), upload that image to Cloudinary, and then return the Cloudinary asset ID as a value, either in a hidden input field, or as the value on the upload input field itself. Once we have that asset ID returned to the FE, we can then upload just that data, and not the image itself, to cloudinary.

Does that make sense logistically? @domitriusclark do we have any concerns about letting businesses upload their own images to Cloudinary?

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

No branches or pull requests

5 participants