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 5 1578
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
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
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
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
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 > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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....
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: 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...
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |