rinkesh-prajapat's avatar

How to read .docs using Laravel

I want to read docs file and store its content in database

0 likes
7 replies
bobbybouwmann's avatar

You weren't clear in what you wanted to do with the content of the file. You only said read the file. Instead you want to parse the file to your database, that is a whole different question!

rinkesh-prajapat's avatar

My question is, i have multiple docs file, i have given Upload File system for docs uploading when upload docs i have multiple columns in database like :- docs_heder , docs_footer, docs_comments etc, i want to store docs content(not file) in database fields

JasonJensenDev's avatar

I know this is an older thread, but I thought I'd chime in because I was also looking for a way to convert a word document into database fields and all I really wanted was to convert a docx file to plain text. In the end, I did not use the https://github.com/PHPOffice/PHPWord repo mentioned above, but instead I used a simple script from our friends over at Stack Overflow found here: https://stackoverflow.com/questions/19503653/how-to-extract-text-from-word-file-doc-docx-xlsx-pptx-php

Hope this helps somebody else...

1 like

Please or to participate in this conversation.