To secure files on a site with authentication we have put the
attachments in a folder outside the IIS web site like this:
where ItemID is a number which we use to check permissions inside our
In order to download the file from the site we have made a binary
reader component (we could probably use SAFileUp or something instead,
but this works) to send the file through an ASP-file:
This works well.
So to my problem:
If I right click the link to save the file on my local computer (Save
target as), it will save the file properly, but the filename in the
Save As-dialog is ShowDoc.asp. I want it to be filename.doc instead.
Is it possible?
I've heard that on a Apache web server you can write the link like
but then the server knows that it's
http://mysite/Docs/ShowDoc.asp?ID=<ItemID> it should load. If this is
possible in IIS, the Save As-problem will be solved. Hopefully.
Re: Link alias
The method described here should work and will allow you to specify a
filename. The filename that's used in the physical path on the server does
not have to be what is used in the filename value in the header that you
return, I believe.
Ray at work
"sdybvik" <firstname.lastname@example.org> wrote in message
> This works well.
> So to my problem:
> If I right click the link to save the file on my local computer (Save
> target as), it will save the file properly, but the filename in the
> Save As-dialog is ShowDoc.asp. I want it to be filename.doc instead.
> Is it possible?
|All times are GMT. The time now is 02:28 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.