Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageyou 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 > > > > >
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.