public/js/course.js
///////////////////////////// for Lectures video convert to base64  
for Lectures video convert to base64
for Lectures video convert to base64
function readURL(input) {
    if (input.files && input.files[0]) {
      var reader = new FileReader();
      reader.onload = function(e) {
        $('#video64').attr('value', e.target.result);
      }
      reader.readAsDataURL(input.files[0]); 
    }
  }
function readURL ( input ) { if ( input . files && input . files [ 0 ] ) { var reader = new FileReader ( ) ; reader . onload = function ( e ) { $ ( '#video64' ) . attr ( 'value' , e . target . result ) ; } reader . readAsDataURL ( input . files [ 0 ] ) ; } }
for Lectures video convert to base64
for Lectures video convert to base64
// convert to base64 string