Introducing DropzoneJSĭropzoneJS allows users to upload files using drag and drop. For more on Node.js, read Node.js Web Development – Fourth Edition. We’ll also implement a simple server-side upload mechanism using Node.js.Īs ever, you can find the code for this tutorial on our GitHub repository. and look at some of the ways in which it can be tweaked and customized. We’re going to take a look at DropzoneJS in some detail. It also makes it easier to validate files before they even reach your server, providing near-instantaneous feedback to the user. It will make your file upload controls look better, make them more user-friendly, and by using AJAX to upload the file in the background, it will at the very least make the process seem quicker. That’s why a plugin to enhance them is always worth a look, and DropzoneJS is just one such option. It’s a real pain to style, it’s clunky and awkward to use, and uploading a file will slow down the submission process of any form.
Of all the components that can make up a form, the file control could just be the most frustrating of the lot. Developers don’t like building them, designers don’t particularly enjoy styling them, and users certainly don’t like filling them in.