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

Send a file that resides above the virtual directory to the browser using ASP.

Participant ,
Aug 17, 2006 Aug 17, 2006

Copy link to clipboard

Copied

How do you send a file that resides above the virtual directory to the browser using ASP.

this doesn't work:
<% Response.Redirect(Server.Mappath("..\..\..\files\" & rsgetefile("filename"))) %>
TOPICS
Server side applications

Views

302
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
LEGEND ,
Aug 17, 2006 Aug 17, 2006

Copy link to clipboard

Copied

Basically you can't send a person to the location as that would totally
defeat the purpose of placing files above the virtual root. You can stream a
file from a page on the site if you use the physical location on the server
to call it.

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"lovewebdev" <webforumsuser@macromedia.com> wrote in message
news:ec2paf$9ht$1@forums.macromedia.com...
> How do you send a file that resides above the virtual directory to the
> browser using ASP.
>
> this doesn't work:
> <% Response.Redirect(Server.Mappath("..\..\..\files\" &
> rsgetefile("filename"))) %>
>


Votes

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
LEGEND ,
Aug 18, 2006 Aug 18, 2006

Copy link to clipboard

Copied

Have a look for Tom Muck's Force Download extension. It'll stream in a file
from outside the root.

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004





Votes

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
Participant ,
Aug 18, 2006 Aug 18, 2006

Copy link to clipboard

Copied

LATEST
Thanks. I found working code. It's now streaming the file to the browser from the directory above the virtual directory. I need that to secure the files.

I'l still check out that extension.

Votes

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