This topic is locked

View Images from a different folder "Absolute path"

5/17/2010 1:07:29 PM
ASPRunnerPro General questions
M
Maurits author

Hi Support.
I use an ISP with a directory structure

www.domain.com

-content

-db

-logging
The folder content is where the actual website is, but i store the database in the folder ..\..\db.

The folder db is non-viewable for storage use with read/write permissions.
Is there a way of storing and retrieving uploaded images and files from that folder. I am asking this because I don't want external internet users to link to my images and files.
In version 6.2 I know there is a way to tick a box "Absolute Path" in "Edit As" for "File/Image" and use the full path g:\webroot\webactive\4271\web\db, this works for uploading.
But I can not find "absolute path" in editor "View as" for the Image control.

I have tried putting the full absolute path "g:\webroot\webactive\4271\web\db\" in the the "URL prefix" to retreive the image, but this doesn't work.

If you right click on the crossed out image the Properties read:

file:///g:/webroot/webactive/4271/web/db/test-20100517-181823.jpg
Two questions:

  1. Is there a way to show and retrieve files/images from that folder?
  2. Also is there a way to hide the full Path/URL in the right click properties window in the browser? I just don't want internet users to link to images or files.
    For the next update:

    Could "Absolute path" in "View As" in Image control be implemented?

    Could higher security for files and images be implemented, a sample website www.g4-group.com. On the logo try to right click and save the picture(blank.png) or right click and chose properties (Address URL: htp://www.g4-group.com/images/blank.png) or like a special pop-up window where links will be hidden.
    Many thanks
    Maurits

A
ann 5/19/2010

Maurits,

  1. You can use corresponding relative path to your files, e.g. ..\..\files. Unfortunately absolute path to the images (fields which are set up as Imageon the "View as" settings dialog) won't work.
  2. Unfortunately you can't hide path to your files. As workaround you can place folder with files outside of your web site root directory so it's not directly accessible via web browser. Contact your web hosting support team to find where you can place it. Then change paths for your files on the View as settings/Edit as settings dialogs on the Visual Editor tab. Please note this workaround will work for files (Fileoption on the "View as" settingsdialog) only.

M
Maurits author 5/19/2010

Hi Ann
Thanks for your reply.
Is it possible to set up a frame or table with a see-through image which you can stretch to the actual size of the viewing image and place this over the existing image? So people don't click on the image itself but on the blank picture.
Do you know how to hardcode this in any of the ASP files?
Many thanks
Maurits

A
ann 5/20/2010

Maurits,
to set up such a frame use Custom option on the View as dialog on the Visual Editor page.

For more information: http://xlinesoft.com/asprunnerpro/docs/_view_as__settings_custom.htm