473,513 Members | 2,263 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP temp files

I have an ASP .NET page where a user uploads file, then this file is
processed and finaly a result file is downloaded to user.
My question is: Is there a way to find if user have downloaded the file, so
I can remove it from server?

TIA
Nov 21 '05 #1
4 1014
Hi.
I know it's not what you're looking for,
but it's a possible solution.
You can run a process once a day, that removes day old files.
Regards.
"Nikolay Petrov" <jo******@mail.bg> wrote in message
news:ud**************@TK2MSFTNGP10.phx.gbl...
I have an ASP .NET page where a user uploads file, then this file is
processed and finaly a result file is downloaded to user.
My question is: Is there a way to find if user have downloaded the file, so I can remove it from server?

TIA

Nov 21 '05 #2
If you stream the file using Response.WriteFile you should be able to delete
then this file following this streaming statement...

Patrice

--

"Nikolay Petrov" <jo******@mail.bg> a écrit dans le message de
news:ud**************@TK2MSFTNGP10.phx.gbl...
I have an ASP .NET page where a user uploads file, then this file is
processed and finaly a result file is downloaded to user.
My question is: Is there a way to find if user have downloaded the file, so I can remove it from server?

TIA

Nov 21 '05 #3
So say the connection was dropped half way thru the transmission to the
client (internet connection problems, end-user closed browser prematurely,
etc) then wouldn't the delete still run even though file wasn't completely
received by the client?
"Patrice" <no****@nowhere.com> wrote in message
news:eA**************@TK2MSFTNGP14.phx.gbl...
If you stream the file using Response.WriteFile you should be able to delete then this file following this streaming statement...

Patrice

--

"Nikolay Petrov" <jo******@mail.bg> a écrit dans le message de
news:ud**************@TK2MSFTNGP10.phx.gbl...
I have an ASP .NET page where a user uploads file, then this file is
processed and finaly a result file is downloaded to user.
My question is: Is there a way to find if user have downloaded the file,

so
I can remove it from server?

TIA


Nov 21 '05 #4
For my current project droping the connection in half of file is not
problem, the user can resubmit the source file again, because it size is
rather small.
So if Response.WriteFile is used the next line is executed after the user
have downloaded the file, right?

"Patrice" <no****@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
AFAIK the server doesn't care. The page will run unless you tell otherwise
(IsClientConnected if I remember).

Patrice

--

"ESPN Lover" <es**@lover.com> a écrit dans le message de
news:Oj**************@TK2MSFTNGP09.phx.gbl...
So say the connection was dropped half way thru the transmission to the
client (internet connection problems, end-user closed browser
prematurely,
etc) then wouldn't the delete still run even though file wasn't
completely
received by the client?
"Patrice" <no****@nowhere.com> wrote in message
news:eA**************@TK2MSFTNGP14.phx.gbl...
> If you stream the file using Response.WriteFile you should be able to

delete
> then this file following this streaming statement...
>
> Patrice
>
> --
>
> "Nikolay Petrov" <jo******@mail.bg> a écrit dans le message de
> news:ud**************@TK2MSFTNGP10.phx.gbl...
> > I have an ASP .NET page where a user uploads file, then this file is
> > processed and finaly a result file is downloaded to user.
> > My question is: Is there a way to find if user have downloaded the file, > so
> > I can remove it from server?
> >
> > TIA
> >
> >
>
>



Nov 21 '05 #5

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

Similar topics

0
1237
by: Bart Plasmeijer | last post by:
Hi, I did create .net application that is using .net remoting. When I start the application temp (.tmp) files are created into the "windows\temp" folder. When I close the application the tmp...
3
2647
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots...
17
4064
by: Jon Ole Hedne | last post by:
I have worked on this problem some hours now (read many-many...), and I can't solve it: In vba-code I create a table with Connection.Execute, and add some data to it. This table is saved in the...
0
1647
by: John Baker | last post by:
Hi; I am have a db back end situation, and have a problem with temp files. I am attempting to use temp files to manage the modification of a master file, and its not working right. I set up...
3
7264
by: Harsh Vardhan Singh | last post by:
hi, i am trying to create a temporary file associated with a particular process. For instance, i have a windows application which will create a temp file as soon as it this program is executed....
0
1781
by: Jeff Dillon | last post by:
When I browse to a simple .aspx page, I get the error: Unable to create temp file in path 'c:\windows\system32\inetsrv\%SystemRoot%\TEMP\': The directory name is invalid. My TEMP variable is...
1
3392
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots...
10
4926
by: robwharram | last post by:
Hi, I'm quite frustrated in the fact that I can't even display a simple "Hello World" message on .Net. I've been through all of the groups and searched all over the place and haven't been able...
4
1998
by: robert d via AccessMonster.com | last post by:
When my app starts up, it creates a temporary database. This temp database is created from a 'model' database that is in the same folder as the application. Because there is a model, the creation...
2
1290
by: Mayer, Stefan | last post by:
Hi, for some other reasons, where i have no influence and no possibility to change it; it is necessary to upload files tempoarily to a temp-folder in my web-project. Allthough the files are...
0
7265
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
7171
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
7388
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
7547
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
7541
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
5693
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,...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3240
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.