Click here to Skip to main content
15,920,687 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can mammoth.js read client side file

What I have tried:

Can mammoth.js read client side file
Posted
Updated 12-Feb-18 20:38pm

1 solution

No. Nothing that runs in the browser has direct access to the client machine file system for security reasons.

To access a client file, you have to upload it to your server first.
 
Share this answer
 
Comments
Richard Deeming 13-Feb-18 10:14am    
Well, technically, if you can get the user to select the file, you can use the FileReader[^] API to read it from script. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900