473,408 Members | 1,729 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,408 software developers and data experts.

Create File Download Handler

I'm creating a Proofing Web Application, that users can upload photos, and
then download and reupload if it doesn't look any good. Upload bit works
fine, with the image being displayed great. However, I want a button that
when clicked will open the generic File Save As or download blah blah.
Rather than them having to drag or right click save the image.

Been looking at FileStreams, a writing the output to Response object, but it
obviously just displayed the image in a page on it's own...

How do I get download pop up to work??

Thanks

Jul 4 '06 #1
2 1828
Try :
http://support.microsoft.com/kb/260519/en-us

(uses the content-disposition header).

--
Patrice

"Calvin Willman" <an**@anon.coma écrit dans le message de news:
C0****************@anon.com...
I'm creating a Proofing Web Application, that users can upload photos, and
then download and reupload if it doesn't look any good. Upload bit works
fine, with the image being displayed great. However, I want a button that
when clicked will open the generic File Save As or download blah blah.
Rather than them having to drag or right click save the image.

Been looking at FileStreams, a writing the output to Response object, but
it
obviously just displayed the image in a page on it's own...

How do I get download pop up to work??

Thanks

Jul 4 '06 #2
I think that might be the one. Thanks.

Funny... Had been looking for hours on Google, and MSDN search, looking for
an article like that, which I knew must have existed.

Thanks again.
On 4/7/06 10:59, in article On**************@TK2MSFTNGP03.phx.gbl, "Patrice"
<sc****@chez.comwrote:
Try :
http://support.microsoft.com/kb/260519/en-us

(uses the content-disposition header).
Jul 4 '06 #3

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

Similar topics

0
by: Buddy Ackerman | last post by:
I am trying to implment a file download via a link such that when clicked, instead of starting the default application for that type of file the user will be presented with a download dialog...
1
by: Roy | last post by:
Hi, I have a problem that I have been working with for a while. I need to be able from server side (asp.net) to detect that the file i'm streaming down to the client is saved...
5
by: Tim_Mac | last post by:
hi, i read that by adding the following code to by aspx pages, it would not store temporary internet files: Response.Cache.SetCacheability(HttpCacheability.NoCache); it didn't actually work...
18
by: jmd | last post by:
Hello, I posted the following in the C# forum but without one answer. But perhaps now in vb.net someone has some guidelines ! This is my question : I want to write a vb.net program that does...
2
by: msnews.microsoft.com | last post by:
I want to read information out of a database at runtime (names of files available to download) and create a list of linkbuttons that the user can click on to download the file(s). How can I...
1
by: test | last post by:
I'm trying to develop a small inhouse file download tool I need to detect all files downloaded from internetexplorer and display a custom interface i.e. when ever the user tries to download a file...
3
by: =?Utf-8?B?SmVycnk=?= | last post by:
I am using Webclient.download to HTTP download a file from an IIS 6.0 server. It works for all the files I have except for those type .config. If I rename the files to .txt extension, it works....
4
by: Vlad | last post by:
I am having problems using the file.create method within a function that is called when looping through an array of filepaths. If I call my function with a hardcoded file path --C:\Temp.txt the...
6
by: ~john | last post by:
I have binary files stored in a SQL Server table that I want the user to be able to download from an aspx webpage. The files are displayed on the form as "LinkButtons". When the link is clicked the...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.