473,398 Members | 2,427 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,398 software developers and data experts.

Copy File from Desktop to Server

Hello!

Sending email attachments works only if the file is on the server file system.

So, I need to copy the local file to the server.

Is there an easy way of doing this?

Thank you!

-Bahman
Nov 19 '05 #1
2 1958
Hi Bahman,

Since this newsgroup is about ASP.NET, I assume you are asking to perform
the copy through a web interface.

You can add an HTMLInput tag in your HTML or ASPX page to allow the site
visitor to select a file from their desktop to be uploaded to the server.
For an example look at this link
http://www.webswapp.com/demos/htmlinputfile.aspx

BTW, you cannot automate the selection of the file from the server side code
because of the browser security constraints (imagine how much damage could
happen if the web programming model were to allow a webpage that you visit on
the World Wide Web to automatically upload files from your desktop to the
server)

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Bahman" wrote:
Hello!

Sending email attachments works only if the file is on the server file system.

So, I need to copy the local file to the server.

Is there an easy way of doing this?

Thank you!

-Bahman

Nov 19 '05 #2
Philip,

Outstanding. Thank you very much!

-Bahman

"Phillip Williams" wrote:
Hi Bahman,

Since this newsgroup is about ASP.NET, I assume you are asking to perform
the copy through a web interface.

You can add an HTMLInput tag in your HTML or ASPX page to allow the site
visitor to select a file from their desktop to be uploaded to the server.
For an example look at this link
http://www.webswapp.com/demos/htmlinputfile.aspx

BTW, you cannot automate the selection of the file from the server side code
because of the browser security constraints (imagine how much damage could
happen if the web programming model were to allow a webpage that you visit on
the World Wide Web to automatically upload files from your desktop to the
server)

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Bahman" wrote:
Hello!

Sending email attachments works only if the file is on the server file system.

So, I need to copy the local file to the server.

Is there an easy way of doing this?

Thank you!

-Bahman

Nov 19 '05 #3

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

Similar topics

9
by: h | last post by:
I have literally spent DAYS experimenting, searching, researching RTFM'g; and I STILL can NOT get copy() to work. If I wrote this message the way I've been talking - there'd be an "F" word...
3
by: EC | last post by:
I am trying to save a file to an end users desktop from the Server on the click of a button. This works when run the application on my local but does not work when the application is running on the...
2
by: Mitchell Thomas | last post by:
How do i create an icon on a users desktop that when double-clicked automatcially goes out and copies a .mdb file from the server and replaces the users .mdb file on their local drive. I know...
11
by: Abhishek | last post by:
I have a problem transfering files using sockets from pocket pc(.net compact c#) to desktop(not using .net just mfc and sockets 2 API). The socket communication is not a issue and I am able to...
2
by: Selden McCabe | last post by:
I have a desktop application which communicates with a web server, using a web service. Mostly, the web service reads and writes data to Access databases on the web server. Now, I need to...
4
by: Jon Asher | last post by:
Hi, I'm trying to do a simple import of a comma delimited text file with COPY but it's returning an error. The file has been granted all permissions in Linux, so it's not clear to me what the...
2
by: deepaks85 | last post by:
Hello everyone, I am trying to copy a file with filesystemobject but I don't know where I am doing mistake. Please help me out.... Here is the code............. file.htm
25
by: Andy_Khosravi | last post by:
I just recently changed my database that I'm running from a monolithic DB to a split FE/BE. The front end resides on the client machine and the BE resides on a network drive. I'm experimenting with...
3
by: sasimca007 | last post by:
Hi friends, I have one small doubt that is, i have to copy one file from tmp folder to the desktop. This is a modperl program, when i write linux command in that modperl program it...
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: 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
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.