Many UI libraries already have a file upload component built-in and to save time it’s worth using them if your use case fits. Often times all that’s needed is to listen for changes on the component and then send the files to your backend. If you have such a UI library at your disposable feel free to grab and go but if you’d like more info on how such file upload components work then stay tuned!
Links