• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Displaying photo outside wwwroot

Community Beginner ,
May 25, 2020 May 25, 2020

Copy link to clipboard

Copied

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?

 

 

 

TOPICS
Security

Views

733

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 25, 2020 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

Votes

Translate

Translate
Community Expert ,
May 25, 2020 May 25, 2020

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 25, 2020 May 25, 2020

Copy link to clipboard

Copied

DOH!!!  I knew that.  🙂

Ever wish you could relive the last 30 minutes?

Movie: About Time

Thanks for your contribution to my BRAIN cell. 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 25, 2020 May 25, 2020

Copy link to clipboard

Copied

LATEST

Join the club! I know exactly how you feel.

 

Dave Watts, Eidolon LLC

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation