Forum


Replies: 1   Views: 165
.htaccess and images
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by apack  · 23-01-2024 - 00:10

Dear PHPDOCX-folks.

I am creating a Word file from a html-string with images embedded as "<img src='../images/1234.jpg' />". Now I have protected the webspace with the .htaccess and .htpassw method (one can only go to the website after userID and PW are given in the browser). Since I have done this, my Word files are still created but after downloading them all images are missing. Without the .htaccess restriction all images are in the Word file. My feeling is that phpdocx need "free access" to the images on the server.

Any idea to come around (I want to keep the .htaccess restriction).

Thanks, Andreas

PS: Images work fine when being embedded in a template docx.