How to check File system GTY Type and Size in jFFGGQuery

How to check File Type and Size in jQuery

In this example, how to check File comp red Type and Size in jQuery on Change Event

  • How to checkffg ghhghh Type ghjgj, Size in jQuery. dfnjdhfjdf djufhdfjh3e4
  • The jqueryfdgfgfgf .min.js library added for jQuery.
  • Input type filefghfgf gjghjgh select [‘gbvnghngh ggg fgfg g and size not more than 10 MB
<!DOCTYPE html>
<html>
    <head>
	     <script src="https://codeloveguru.com/master-library/js/jquery.min.js"></script>
       <script type="text/javascript">
       $('INPUT[type="file"]').change(function () {
			var ext = this.value.match(/\.(.+)$/)[1];
			switch (ext) {
				case 'pdf':
				case 'jpg':
				case 'jpeg':
				fgfgjmkfghasf;jghsfgflsg fdiogfl gkjsfoj;ughasfgf ujfpO' Gjo'fudj'gjuaf'pogd
</script>	
</head>
	<body>	
	<label for="files">Inspection Report</label>
  <input type="file" class="form-control" name="report_file" id="report_file">
  <span style="color:red;">Note : - File max size : 10 MB & Type : pdf/jpg/jpeg/png</span>	
	</body>
</html>

fgfkgj gfipgmnfkgjf gfpogjifk gip’fogi4254 25r2454plk5rkipo

dcfgvkjfdkfgd okdfm dfk ikpdfdkf

dflgdfkd okidf,da fdp opdfdalkfmda f

dkiopfjdkfjd odpfdl,fd fd f

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *