javascript - jszip image is saving but image size showing as zero byte -


images saved size comes out 0 bytes me out please.

here code:

$(function() {     $(document).on('click', '#submitid', function() {         var zip = new jszip();         var file = $('#pan')[0].files[0];         zip.file($('#pan')[0].files[0].name, getbase64(file), {             base64 : true         });         zip.generateasync({             type : "blob"         }).then(function(content) {             var fd = new formdata();             fd.append('file1', content);             $.ajax({                 type : 'post',                 url : 'url',                 data : fd,                 processdata : false,                 contenttype : false                 }).done(function(data) {                 console.log(data);             });         });     }); }); 


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -