Skip to main content
Known Participant
May 25, 2020
Answered

Displaying photo outside wwwroot

  • May 25, 2020
  • 1 reply
  • 987 views

For security reasons, I am uploading photos to OUTSIDE the /inetpub/wwwroot/ area on my server. 

To c:\isolate\

Then emailing the admin a copy of the photo for admin to approve photo. 

How do I get the photo display???

Under normal circumstances, I simply do a:

<img src="http://www.domain.com/images/photo_name.jpg">

But what when it's outside the web root?

I have tried what I thought was the obvious

<img src="c:\isolate\photo.jpg">

I do not get an "error" (a "symbol" top left of the image) but I get a blank. 

What am I missing?

Not really a CF issue, more an HTML one?

 

 

 

This topic has been closed for replies.
Correct answer Dave Watts

You're not going to be able to provide a web link to a file that isn't web-accessible. But I think you could read the file from the directory and make it an attachment using CFMAILPARAM.

 

Dave Watts, Eidolon LLC

1 reply

Dave WattsCommunity ExpertCorrect answer
Community Expert
May 25, 2020

You're not going to be able to provide a web link to a file that isn't web-accessible. But I think you could read the file from the directory and make it an attachment using CFMAILPARAM.

 

Dave Watts, Eidolon LLC

Dave Watts, Eidolon LLC
Known Participant
May 25, 2020

DOH!!!  I knew that.  🙂

Ever wish you could relive the last 30 minutes?

Movie: About Time

Thanks for your contribution to my BRAIN cell. 

 

Community Expert
May 25, 2020

Join the club! I know exactly how you feel.

 

Dave Watts, Eidolon LLC

Dave Watts, Eidolon LLC