Dave Merrill
07/31/2024, 5:06 PMEvil Ware
07/31/2024, 5:13 PMcfsimplicity
07/31/2024, 5:16 PMaliaspooryorik
aliaspooryorik
Dave Merrill
07/31/2024, 5:59 PMDave Merrill
07/31/2024, 6:21 PMJason Roozee
07/31/2024, 7:04 PMDave Merrill
07/31/2024, 8:03 PMdenny
07/31/2024, 8:45 PMdenny
07/31/2024, 8:46 PMfile:///
paths for the images as long as you're not serving them as html as well? 🤔denny
07/31/2024, 8:47 PMlocalUrl=true
in cfdocument?denny
07/31/2024, 8:47 PM//path
Dave Merrill
08/01/2024, 2:29 PMlocalUrl=true
.
Leaving off the protocol causes the page to never finish rendering.
In fact it seems to bork something deeper.
If I cancel that request, put the https back, and go again, it still doesn't complete, eventually throwing a 500 error after an unnaturally long time.
This machine doesn't have FusionReactor on it, so I don't have any more detail on that crash.
Once that request times out, the page renders normally with https img urls.
Odd, but not worth chasing further.Jason Roozee
08/01/2024, 2:58 PMJoshua Kasap
08/01/2024, 3:08 PMDave Merrill
08/01/2024, 3:14 PMJoshua Kasap
08/01/2024, 3:21 PMcfsimplicity
08/01/2024, 3:47 PMDave Merrill
08/01/2024, 4:02 PMcfsimplicity
08/01/2024, 4:04 PMcfsimplicity
08/01/2024, 4:16 PMcfsimplicity
08/01/2024, 4:40 PM<cfdocument format="PDF" name="pdfbinary">
<cfoutput>
<!DOCTYPE html>
<html lang="en">
<head><title>testing</title></head>
<body>
<img src="<http://localhost/test.jpg>">
</body>
</cfoutput>
</cfdocument>
<cfheader name="Content-Disposition" value="attachment; filename=#Chr( 34 )#test.pdf#Chr( 34 )#">
<cfcontent type="application/pdf" variable=#pdfBinary#>
cfsimplicity
08/01/2024, 4:54 PMlocalhost
cfsimplicity
08/01/2024, 5:16 PMlocalurl="true"
and <img src="test.jpg">
where the image file is in the same directory as the calling script also works for me.denny
08/01/2024, 5:46 PMfile://
URLs (meaning they are on the local filesystem), for images that you are fetching over the web, you do not use localurl="true"
Dave Merrill
08/01/2024, 6:52 PMDave Merrill
08/01/2024, 7:01 PMdenny
08/01/2024, 9:48 PM