I create a file uploader with Dropzone.js
<div id="dropzone"></div>
and jquery code:
$("#dropzone").dropzone({
url: '/',
multiple:false,
autoProcessQueue: false,
paramName: "file",
addRemoveLinks: true,
dictRemoveFile: '<span class="fa fa-close"></span>',
acceptedFiles: 'image/jpeg',
});
But when I render page I can select multiple image. I want users just select one image and when they again select other imageT second image replace with first image.