Preview An Image Before It Is Uploaded | Code Factory

Donate : Link

Medium Blog : Link

Applications : Link


<script src=""></script>
	<input type='file' id="imageFile" />
	<img id="prevImage" src="#" alt="Image" />


function readURL(input) {
	if (input.files && input.files[0]) {
		var reader = new FileReader();
		reader.onload = function(e) {

$("#imageFile").change(function() {

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s