Uploading Images to Cloudinary with the Fetch API
I was recently checking out a very good post which explained how to upload images using React Dropzone and SuperAgent to Cloudinary.
It's a brilliant post; you should totally read it. Even if you hate images, uploads and JavaScript. However, there was one thing in there that I didn't want; SuperAgent. It's lovely but I'm a Fetch guy. That's just how I roll. The question is, how do I do the below using Fetch?
Well it actually took me longer to work out than I'd like to admit. But now I have, let me save you the bother. To do the above using Fetch you just need this:
To get a pre-canned project to try this with take a look at Damon's repo.