473,382 Members | 1,424 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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

Jul 21 '05 #1
1 1425
you might be after something like this:
http://www.aspfaq.com/show.asp?id=2161

Stu

"Sten Larsson" <st***@Xstenl.com> wrote in message
news:uu**************@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


Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Vishnu | last post by:
I have a strange problem on WindowsXP proffessional with IE6 ,when i try to display a tiff file ,it is not showing ,small red x is comming up. I tried by dowloading latest IE from microsoft but...
3
by: Daniel Shin | last post by:
Hi all, Can anyone recommend a good but free XML parser running on Windows XP? I am currently using XML Spy which will be expired soon. Your kind help and adivse will be highly appreciated. ...
0
by: Baiju | last post by:
Hello I have an ASP.NET web application which is using some activex controls at the client. We are using internet component donwload technology to download these components. The website was not...
2
by: Terry | last post by:
I have created a switchboard, created using Access 2000. If I put the mouse anywhere on the form, outside of the checkboxes and scroll the wheel backwards, I get the following error. Run-Time...
3
by: dd_bdlm | last post by:
I am trying to isolate the identifying area codes from postcodes and want to extract the first one or two letters from each postcode. I have created a query that uses: SmallPostCode:...
0
by: KC | last post by:
Could someone elaborate on any possbile issue storing an XmlSchema object statically for reuse. I am dowloading, reading and compiling a schema from an external url. I am then saving the...
5
by: Bala | last post by:
Hi I displaying my pdf files ( F:\test\test1\test.pdf - for example file path) on datagrid for user download. when I right clik the link and its show like this file:///F:/test/test1/test.pdf....
2
by: Brandon | last post by:
Running IIS 6, Classic ASP Browser: IE and/or Mozilla I have an application that allows users to store documents on my server. When they need to access/download the documents, my application...
0
by: =?Utf-8?B?Q2hhcmxlcw==?= | last post by:
Like many people, I normally use Yahoo! Mail via the web and like to keep all my emails stored on the Yahoo! server. However sometimes I can’t get access to a PC/the web and I download my emails...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.