How to Upload Files With JavaScript
Too Long; Didn't Read
In the previous post, we learned that in order to access a file on the user’s device, we had to use an HTML form. We still need the file input to access the files on the device. However, browsers have a Fetch API(https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) that we can use to make HTTP requests without forms.