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

Create a temporary download link?

Hi,

Is there a way to create a temporary download link and to know when the
client has finished downloading the file?

Thanks in advanced,

Asaf
Nov 18 '05 #1
4 7240
>
Is there a way to create a temporary download link and to know when the
client has finished downloading the file?


I use the following technique for Web reporting.

Create the file with a GUID in the file name so thats its unique, and point
the link at it.

Every time someone uses that report I delete any other reports that are
older than 30 mins.
Nov 18 '05 #2
Thanks Josh for your help.

Is there a way to know when the client has finished the download process?

"Josh" <so*****@microsoft.com> wrote in message
news:Oa**************@TK2MSFTNGP15.phx.gbl...

Is there a way to create a temporary download link and to know when the
client has finished downloading the file?


I use the following technique for Web reporting.

Create the file with a GUID in the file name so thats its unique, and
point
the link at it.

Every time someone uses that report I delete any other reports that are
older than 30 mins.

Nov 18 '05 #3
You could also stream the file content (using Response.WriteFile). This way
the file doesn't have to be at a reachable location plus you can still have
some code after streaming the file...

You'll have also to set the approprioate contenttype...

Patrice

--

"Asaf" <as****@hotmail.com> a écrit dans le message de
news:Oa*************@tk2msftngp13.phx.gbl...
Thanks Josh for your help.

Is there a way to know when the client has finished the download process?

"Josh" <so*****@microsoft.com> wrote in message
news:Oa**************@TK2MSFTNGP15.phx.gbl...

Is there a way to create a temporary download link and to know when the
client has finished downloading the file?


I use the following technique for Web reporting.

Create the file with a GUID in the file name so thats its unique, and
point
the link at it.

Every time someone uses that report I delete any other reports that are
older than 30 mins.


Nov 18 '05 #4
Thanks for your help :)

"Patrice" <no****@nowhere.com> wrote in message
news:uZ**************@TK2MSFTNGP14.phx.gbl...
You could also stream the file content (using Response.WriteFile). This
way
the file doesn't have to be at a reachable location plus you can still
have
some code after streaming the file...

You'll have also to set the approprioate contenttype...

Patrice

--

"Asaf" <as****@hotmail.com> a écrit dans le message de
news:Oa*************@tk2msftngp13.phx.gbl...
Thanks Josh for your help.

Is there a way to know when the client has finished the download process?

"Josh" <so*****@microsoft.com> wrote in message
news:Oa**************@TK2MSFTNGP15.phx.gbl...
> >
>> Is there a way to create a temporary download link and to know when
>> the
>> client has finished downloading the file?
>
> I use the following technique for Web reporting.
>
> Create the file with a GUID in the file name so thats its unique, and
> point
> the link at it.
>
> Every time someone uses that report I delete any other reports that are
> older than 30 mins.
>
>



Nov 18 '05 #5

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

Similar topics

7
by: Norton | last post by:
Hi all, I would like to know if there is any method in asp or asp.net to direct the browser to download a file into the Temporary Internet Files directory so that i can make use of vb script to...
5
by: Verane | last post by:
Hi, I have read the thread named "Could not copy temporary files to the output directory" on this newsgroup. And I have the same symptoms on my machine. But I didn't find any solution suitable for...
13
by: Daniel Walzenbach | last post by:
Hi, Imagine the following situation: I have an asp.net application which allows uploading files to a SQL Server 2000 database (Files are stored as type "images"). As a next step I would like to...
6
by: windandwaves | last post by:
Hi Folk Some of my clients asked me to create "fancy emails" for them (aka html formatted emails). I know how to make a nice html document, but I had trouble creating a simple way to provide...
1
by: Boris | last post by:
We have some .NET 1.1 DLLs which we want to use in a ASP.NET 1.1 web page (actually one is a real .NET DLL in Managed C++ while the others are native Windows DLLs). First we copied all of the DLLs...
5
by: nephish | last post by:
Hello there, i have an app that i need to be able to publish a link to download a csv file. i know that i can use php to make the file, but how to i link to it through php. like if i have an...
2
by: prakashwadhwani | last post by:
I have an app with a Front End and a Back-End. My date field is INV_DATE I would like to copy all data with year(inv_date) 2005 to a temp table in both, the front end & the back end. How...
2
by: someusernamehere | last post by:
Hey, I need to implement this with PHP, i.e. I have some files in www.myserver.com/files what I need is when an user log into the account a temporary URL is created for download a file in /files,...
12
by: Bob Bedford | last post by:
I've to build a website where the customer can buy an image. I'm thinking in the 2 ways to let people get those images: receive them by Email or send them an image link wich validity is limited in...
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
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.