File upload with PUT in Javascript


A little snippet that will be useful… future me!

I had some trouble assembling this from around the net, though it ended up to be quite straightforward eventually.

The whole use of Alpine.js is because I’m experimenting a bit…

Stay safe everyone!

Comments? Octodon, , GitHub, Reddit, or drop me a line!