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

Creating a File Depot

I'm trying to create a file depot that will hold files for 24 hours and then
kill them. Basically a temporary place for people to post something that
will automatically notify the person that it's posted for. Although I'm new
to ASP and HTML, I've got quite a bit of development experience. If this
wasn't web based it'd be a peice of cake... But I'm not sure how to do a
couple of things through the web...

I figure I'll write a service that will clean up the files - easy. User's
will login and be presented with a list of files waiting for them. - Mostly
done.

Users can transfer files to the server - How? How do I have a user select a
local file and have it copied to a pre-determined place on the server? Then
I need to accomplish the opposite: Have them select a file waiting for them
and have it copied to a specified location on their drive. How do you do
this through a web page? How can you make it secure so that people can't
get to these files without going through this interface? Any help is
greatly appreciated.

Thanks

Jerry
Nov 18 '05 #1
5 1276
In short, you can use the file upload control on your toolbar, or type it
into the HTML manually.
<input type=file id=myFile runat=server />
This allows the user to upload files to your site. You can then use the
server side events of this control to save the file wherever you'd like on
your server hard drive or in a database.
Then you could use Response.Writefile to send the file back out again.
Here's more info:
http://msdn.microsoft.com/library/de...efiletopic.asp

Here's a couple good tutorials on the subject for you:
http://www.aspnetpro.com/features/20...200307so_f.asp
http://aspalliance.com/das/tutorial/fileupload.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Jerry Camel" <rl*****@msn.com> wrote in message
news:ex**************@TK2MSFTNGP12.phx.gbl...
I'm trying to create a file depot that will hold files for 24 hours and then kill them. Basically a temporary place for people to post something that
will automatically notify the person that it's posted for. Although I'm new to ASP and HTML, I've got quite a bit of development experience. If this
wasn't web based it'd be a peice of cake... But I'm not sure how to do a
couple of things through the web...

I figure I'll write a service that will clean up the files - easy. User's
will login and be presented with a list of files waiting for them. - Mostly done.

Users can transfer files to the server - How? How do I have a user select a local file and have it copied to a pre-determined place on the server? Then I need to accomplish the opposite: Have them select a file waiting for them and have it copied to a specified location on their drive. How do you do
this through a web page? How can you make it secure so that people can't
get to these files without going through this interface? Any help is
greatly appreciated.

Thanks

Jerry

Nov 18 '05 #2
Maybe the problem is that I was making this much more complicated than it
apparently is.
I'm assuming you mean the "File Field" control on the HTML toobar, right?
Or am I missing one on the "Web Forms" toolbar?

Your help is very appreciated.

Jerry

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eu**************@TK2MSFTNGP12.phx.gbl...
In short, you can use the file upload control on your toolbar, or type it
into the HTML manually.
<input type=file id=myFile runat=server />
This allows the user to upload files to your site. You can then use the
server side events of this control to save the file wherever you'd like on
your server hard drive or in a database.
Then you could use Response.Writefile to send the file back out again.
Here's more info:
http://msdn.microsoft.com/library/de...efiletopic.asp
Here's a couple good tutorials on the subject for you:
http://www.aspnetpro.com/features/20...200307so_f.asp
http://aspalliance.com/das/tutorial/fileupload.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Jerry Camel" <rl*****@msn.com> wrote in message
news:ex**************@TK2MSFTNGP12.phx.gbl...
I'm trying to create a file depot that will hold files for 24 hours and then
kill them. Basically a temporary place for people to post something that will automatically notify the person that it's posted for. Although I'm

new
to ASP and HTML, I've got quite a bit of development experience. If this wasn't web based it'd be a peice of cake... But I'm not sure how to do a couple of things through the web...

I figure I'll write a service that will clean up the files - easy. User's will login and be presented with a list of files waiting for them. -

Mostly
done.

Users can transfer files to the server - How? How do I have a user select a
local file and have it copied to a pre-determined place on the server?

Then
I need to accomplish the opposite: Have them select a file waiting for

them
and have it copied to a specified location on their drive. How do you

do this through a web page? How can you make it secure so that people can't get to these files without going through this interface? Any help is
greatly appreciated.

Thanks

Jerry


Nov 18 '05 #3
You are correct. Use the "File Field" control on the HTML toolbar.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Jerry Camel" <rl*****@msn.com> wrote in message
news:ul**************@TK2MSFTNGP10.phx.gbl...
Maybe the problem is that I was making this much more complicated than it
apparently is.
I'm assuming you mean the "File Field" control on the HTML toobar, right?
Or am I missing one on the "Web Forms" toolbar?

Your help is very appreciated.

Jerry

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eu**************@TK2MSFTNGP12.phx.gbl...
In short, you can use the file upload control on your toolbar, or type it
into the HTML manually.
<input type=file id=myFile runat=server />
This allows the user to upload files to your site. You can then use the
server side events of this control to save the file wherever you'd like on your server hard drive or in a database.
Then you could use Response.Writefile to send the file back out again.
Here's more info:

http://msdn.microsoft.com/library/de...efiletopic.asp

Here's a couple good tutorials on the subject for you:
http://www.aspnetpro.com/features/20...200307so_f.asp http://aspalliance.com/das/tutorial/fileupload.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Jerry Camel" <rl*****@msn.com> wrote in message
news:ex**************@TK2MSFTNGP12.phx.gbl...
I'm trying to create a file depot that will hold files for 24 hours
and then
kill them. Basically a temporary place for people to post something that will automatically notify the person that it's posted for. Although
I'm new
to ASP and HTML, I've got quite a bit of development experience. If this wasn't web based it'd be a peice of cake... But I'm not sure how to
do a couple of things through the web...

I figure I'll write a service that will clean up the files - easy. User's will login and be presented with a list of files waiting for them. -

Mostly
done.

Users can transfer files to the server - How? How do I have a user select
a
local file and have it copied to a pre-determined place on the server?

Then
I need to accomplish the opposite: Have them select a file waiting

for them
and have it copied to a specified location on their drive. How do you

do this through a web page? How can you make it secure so that people can't get to these files without going through this interface? Any help is
greatly appreciated.

Thanks

Jerry



Nov 18 '05 #4
Works like a charm. Is there any way to show file upload progress or would
that require a custom control? Thanks.

Jerry

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eu**************@TK2MSFTNGP12.phx.gbl...
In short, you can use the file upload control on your toolbar, or type it
into the HTML manually.
<input type=file id=myFile runat=server />
This allows the user to upload files to your site. You can then use the
server side events of this control to save the file wherever you'd like on
your server hard drive or in a database.
Then you could use Response.Writefile to send the file back out again.
Here's more info:
http://msdn.microsoft.com/library/de...efiletopic.asp
Here's a couple good tutorials on the subject for you:
http://www.aspnetpro.com/features/20...200307so_f.asp
http://aspalliance.com/das/tutorial/fileupload.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Jerry Camel" <rl*****@msn.com> wrote in message
news:ex**************@TK2MSFTNGP12.phx.gbl...
I'm trying to create a file depot that will hold files for 24 hours and then
kill them. Basically a temporary place for people to post something that will automatically notify the person that it's posted for. Although I'm

new
to ASP and HTML, I've got quite a bit of development experience. If this wasn't web based it'd be a peice of cake... But I'm not sure how to do a couple of things through the web...

I figure I'll write a service that will clean up the files - easy. User's will login and be presented with a list of files waiting for them. -

Mostly
done.

Users can transfer files to the server - How? How do I have a user select a
local file and have it copied to a pre-determined place on the server?

Then
I need to accomplish the opposite: Have them select a file waiting for

them
and have it copied to a specified location on their drive. How do you

do this through a web page? How can you make it secure so that people can't get to these files without going through this interface? Any help is
greatly appreciated.

Thanks

Jerry


Nov 18 '05 #5
That would require a custom control.

"Jerry Camel" <rl*****@msn.com> wrote in message
news:OC**************@TK2MSFTNGP12.phx.gbl...
Works like a charm. Is there any way to show file upload progress or would that require a custom control? Thanks.

Nov 18 '05 #6

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

Similar topics

1
by: dave | last post by:
I first started using HCW.exe to compile .rtf filew created with MS Word a couple of weeks ago. I used the file | new menu then selected New project in the dialog box and everything worked as...
1
by: C-man | last post by:
Basically I have this little program that will look through directories and rename any file it finds. The renaming that takes place is like removing of dashes or Caps the first letter from each...
2
by: Stephen Boulet | last post by:
I'm looking to install python on hpux 10.2. Anyone know of a site hosting a depot file of a recent python? Thanks. Stephen
15
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
12
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
5
by: Sam777 | last post by:
I was under the impression that creating the app_offline.htm file at the root of the webapp would cause all handles to be closed so that the app could be removed. Unfortunately, this isn't the...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
21
by: prachi983 | last post by:
hi all, i lookikng for a prgram or algorithm for file shredding....anybody having it please mail me...
4
by: Zerofury | last post by:
Okay here's what i'm trying to do. I want to create an array and fill it with objects, so that when i create a method to alphabetize them, all of the pieces (the price, name, ect) don't get all out...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
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?
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
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,...

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.