문제

I have an ms-word document as HTMLInputElement in my javascript. How do I get the full content of the file to save it as a Blob object and be able to retrieve it?

var file = document.getElementById('ms-word');
**var content = file.getcontentofthefile;**

Thanks

도움이 되었습니까?

해결책

inputElement.files[0].slice(0, inputElement.files[0].size);

Taken from http://www.html5rocks.com/en/tutorials/file/dndfiles/.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top