makes preview when we pass the mouse on thumbnails and  uploads file when drag and drop