file upload processing image notification to User?

I have the button where i am implement the fileupload concept but the problem while uploading the file there is no notification.So i Want to give notification(Like any Circle image revolving after finish load it will stop and back to home page) to the User that this processing.Below is my code.

//File Upload
		$("#inputfile").hide();
		$("#psFileContainer").hide();
		$("#vfile").hide();

		var _inputFile=document.getElementById("inputfile");
		var Uploadedfilename;
		//Uploading Image
		$("#attachfile").on('click',function() {
	        $("#inputfile").trigger("click");
		});

		//Uploading content into DIV container

		 _inputFile.addEventListener("change", function (evt) {
		            file = this.files[0];
		            if ( window.FileReader ) {
		                reader = new FileReader();
		                reader.onloadend = function (e) { 
							alert("loaded");
		                    Uploadedfilename=file.name;
							$("#vfile").show();
							$("#vfile").prop("href",e.target.result);
							$("#FILE_BASE64").val(e.target.result);
							$("#filename").val(file.name); }
		                }
						reader.readAsDataURL(file);
				},false);


Source: ajax

Leave a Reply