Home > Archive > ASP > October 2004 > Dowloading
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Sten Larsson 2004-10-27, 3:55 am |
| How can I allow downloading a file on the server to a different file name on
the client?
I already have uploading, and I use aspSmartUpload with no problems. To
avoid file name clashes, I rename the files when stored on the server. When
the user downloads, I want to restore the original file name. This seems
like a trivial task, but I have not been able to yet.
First attempt was to use aspSmartUpload.DownloadFile. But it corrupts the
original file (at least when testing w. a Word document). I did try setting
content type both "application/msword" and "application/x-msdownload".
Any ideas? Thanks!
-sten
| |
| Stuart Palmer 2004-10-27, 3:55 am |
| you might be after something like this:
http://www.aspfaq.com/show.asp?id=2161
Stu
"Sten Larsson" <stenX@Xstenl.com> wrote in message
news:uur9Ti9uEHA.1984@TK2MSFTNGP14.phx.gbl...
> How can I allow downloading a file on the server to a different file name
on
> the client?
>
> I already have uploading, and I use aspSmartUpload with no problems. To
> avoid file name clashes, I rename the files when stored on the server.
When
> the user downloads, I want to restore the original file name. This seems
> like a trivial task, but I have not been able to yet.
>
> First attempt was to use aspSmartUpload.DownloadFile. But it corrupts the
> original file (at least when testing w. a Word document). I did try
setting
> content type both "application/msword" and "application/x-msdownload".
>
> Any ideas? Thanks!
> -sten
>
>
>
>
>
|
|
|
|
|