7

I have used images uploading preview using jquery and want to preview a video as well, but not getting any clue regarding. Have you any solution regarding. Any kind of help will be appreciated.

image preview is working fine

      function readURL(input) {
                  $('#previewHolderalbumList').hide();
                  $('#previewHolderalbum').show();
                if (input.files && input.files[0]) {
                    var reader = new FileReader();
                    reader.onload = function(e) {
                        $('#previewHolder').attr('src', e.target.result);
                    }

               reader.readAsDataURL(input.files[0]);
           }
       }
       $("#fileID").change(function() {
           readURL(this);
       });

Ragards,

Sonu Sindhu

Sonu Sindhu
  • 1,752
  • 15
  • 25

0 Answers0