Hi there. I’m building a directory site for an art collective using Gatsby, and want users to be able to apply to be listed from a form on the site.
I’ve enlisted the Content Management API to create the new Artist record upon completion of the form by putting it within a Netlify function, but hit a snag with uploading the submitted avatar image that is part of the form.
client.uploadFile() method only accept a URL or relative path? I tried uploading a data url and keep getting a 500 error response. I’m not sure how to get this file to a place where it can be referenced by URL from a frontend form.
Thanks for your help, and apologies if I’ve missed something glaring, I’m new to this. First community forum post anywhere actually!