-1

Well I am creating a react based web application in which I want to upload docx/pdf and convert it to pdf/docx. For security reason there is no way to get file path in react. I wanna use libreoffice-convert package for above reason in which one should provide path of the file. I have heard that one can get path using node script but I am not able to figure it out.

Can somebody help me out by answering following questions

1.) Should I write file uploading code in Node.js script to get the path of the file?
2.) What are other ways to get file path (other than Node.js )?
3.) If there is other way to get file path than Node.js then can I configure it in react?

Please share any resource that can help me in doing the above task. Sorry for the poor english.

Thank you in advance

1
  • Welcome to Stack Overflow. Please add a brief description, code, errors of your search/research efforts as is suggested. Commented Sep 24, 2020 at 13:50

1 Answer 1

0

Use multer for handling file attachment in node js . multer will download the file and save it in provided path

docmentation of multer

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.