Using Dropzone.js and here's the code. The option "maxFiles = 1" does prevent selecting multiple files when browsing but does not stop from 'dragging' multiple files onto the dropzone area. Any idea how to prevent multiple file on drag?
$(".dropzone").dropzone({
dictDefaultMessage: "Drag image here",
uploadMultiple: false,
parallelUploads: 1,
clickable: true,
maxFiles: 1,
url: 'somewhere' // Provide URL
});