Hi @neha_jadhav
The ideal way is to use the OOTB fileupload resource for any image(cq/gui/components/authoring/dialog/fileupload) It can load the preview for the image on the dialog. Here instead of dropdown if you can alter the implementation that would work.
But if you still want the preview based on dropdown you can add custom javascript and listen to the onchange event .
on Dialog
<listeners
jcr:primaryType="nt:unstructured"
change="function(field, value) {
var img = Ext.getCmp('image-preview');
img.setSrc(value);
}"/>
custom js
(function($, ns) {
$(document).on("foundation-contentloaded", function() {
var imageField = $('#image-preview');
var previewImage = $('#image-preview-img');
imageField.on('change', function() {
var file = this.files[0];
var reader = new FileReader();
reader.onload = function(e) {
previewImage.attr('src', e.target.result);
};
reader.readAsDataURL(file);
});
});
})(jQuery, Granite.author);