Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Dowloading
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






Report this thread to moderator Post Follow-up to this message
Old Post
Sten Larsson
10-27-04 08:55 AM


Re: Dowloading
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
>
>
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Stuart Palmer
10-27-04 08:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:46 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.