I'm using the cfcontent to create a Word doc.
The document comes up fine, but where there should be an image, instead there is a message:
"The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location"
I'm using https so the site is not publicly available. I suspect this is part of the issue.
The same problem that is addressed in this thread:
They claim to have solved the problem, but it seems they only had a theory about storing images at the root or something, but they never say if it actually worked. (I tried putting the image in the root and it did not work.)
Here is my code:
<html>
<head>
<cfheader name="Content-Disposition" value="test.doc">
<cfcontent type="application/msword">
</head>
<body>
Here is some text and an image:
<br>
<img src="../../IMGS/test.jpg">
</body>
</html>
(I also tried using an absolute path for the image but there was no difference)
The document comes up fine, but where there should be an image, instead there is a message:
"The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location"
I'm using https so the site is not publicly available. I suspect this is part of the issue.
The same problem that is addressed in this thread:
They claim to have solved the problem, but it seems they only had a theory about storing images at the root or something, but they never say if it actually worked. (I tried putting the image in the root and it did not work.)
Here is my code:
<html>
<head>
<cfheader name="Content-Disposition" value="test.doc">
<cfcontent type="application/msword">
</head>
<body>
Here is some text and an image:
<br>
<img src="../../IMGS/test.jpg">
</body>
</html>
(I also tried using an absolute path for the image but there was no difference)