//1)
var blob = new Blob([$.base64('encode', "Hello world")], {type:"application/pdf;charset=UTF-8"});//2)
var blob = new Blob([contentText], {type:"application/pdf;charset=UTF-8"});//3)
var blob = new Blob([contentHTML], {type:"application/pdf;charset=UTF-8"});//for 1,2,3
storageRef.child('test.pdf').put(blob, {contentType: 'application/pdf'});
//4)
var blob = new Blob([contentText], {type:"application/pdf;charset=UTF-8"});var file = new File([blob], "test.pdf");
//for 4)
storageRef.child('test.pdf').put(file, {contentType: 'application/pdf'});
In the issue a file uploaded, but he not opens from Adobe Acrobat.
But if are open him from text editor, then content outputted.
Please, help