473,769 Members | 6,337 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need to upload a file from local machine without user interaction. Any ideas?

I have a webform that I am creating. I need for the user to be able to pass
it the path and name of a file on his/her local machine without any
interaction. I don't want to have to use the file upload control. This will
be an automated process on their end. They should only have to type the url
with a path/file name and let it upload the file that they specify (example:
They type http://www.mysite.com?FileName=C:\Test\Test.txt and it will upload
that file from their box to our server. Any ideas on the best idea on how
this could be done? I have thought about using a webservice and actually
have one written but I am having trouble with it picking up the file from
their local machine since it is running on our server. I would even
entertain the idea of using a third party control if there are any good ones
out there that someone can recommend.

Thanks in advance!
Nov 18 '05 #1
2 2392
instead of a pull mechanism from the server, it should be a push from the
client. write code on the client which pushes the file to server.
web service is a way to go.

Av.
"David Hearn" <da*********@st agparkway.com> wrote in message
news:ej******** ******@TK2MSFTN GP11.phx.gbl...
I have a webform that I am creating. I need for the user to be able to pass
it the path and name of a file on his/her local machine without any
interaction. I don't want to have to use the file upload control. This will
be an automated process on their end. They should only have to type the url
with a path/file name and let it upload the file that they specify
(example: They type http://www.mysite.com?FileName=C:\Test\Test.txt and it
will upload that file from their box to our server. Any ideas on the best
idea on how this could be done? I have thought about using a webservice and
actually have one written but I am having trouble with it picking up the
file from their local machine since it is running on our server. I would
even entertain the idea of using a third party control if there are any
good ones out there that someone can recommend.

Thanks in advance!

Nov 18 '05 #2
I think this is possible with signed ActiveX control or Java application.
With digitial certificates the code restriction will become less restricted.

"Daniel Jin" <Da*******@disc ussions.microso ft.com> ¦b¶l¥ó
news:D0******** *************** ***********@mic rosoft.com ¤¤¼¶¼g...
I certainly hope this cannot be done for security reason. Imagine the risk this exposes client machines to? any web site can steal any
information off of your harddrive if this were possible.
"David Hearn" wrote:
I have a webform that I am creating. I need for the user to be able to pass it the path and name of a file on his/her local machine without any
interaction. I don't want to have to use the file upload control. This will be an automated process on their end. They should only have to type the url with a path/file name and let it upload the file that they specify (example: They type http://www.mysite.com?FileName=C:\Test\Test.txt and it will upload that file from their box to our server. Any ideas on the best idea on how this could be done? I have thought about using a webservice and actually
have one written but I am having trouble with it picking up the file from their local machine since it is running on our server. I would even
entertain the idea of using a third party control if there are any good ones out there that someone can recommend.

Thanks in advance!

Nov 18 '05 #3

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

Similar topics

7
4536
by: Joe | last post by:
I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. //UploadForm.asp <FORM NAME="InputForm" ACTION="UploadAction.asp" METHOD="POST" enctype=multipart/form-data> <input type="file" name="fileName"> //etc ... </FORM>
1
3024
by: PeterB | last post by:
Hi! I'm using Pure ASP File Upload (http://www.asp101.com/articles/jacob/scriptupload.asp) to upload a file from a client to a server. I am testing both on a local IIS and a remote server. The welcome page has a browse button (for locating your local file), a textfield where the path is displayed, and a upload button. When clicking upload a VB ASP script is run, and the outcome is displayed on a new page. 1. On my local machine I got the...
2
2875
by: Brian Madsen | last post by:
Hey guys, I am currently working on a remote file upload utility from an external server to a local server. Problems I face is: 1)the request server cannot be mapped - ie. i can't secure it by using the IP or somesuch. 2)the process is automatic, no user interaction involved.
18
4351
by: Jen | last post by:
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't get it to upload a file to the FTP server. I just get a "Cannot connect to remote server" error after this TRY: s = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
1
2589
by: Rizwan | last post by:
I am writing this code for file upload in asp 3.0 on my webpage........ It is working on local system but when i want to upload an image on my website from client machine it is not working ....... can somebody help me <%@ Language=VBScript %> <%Option Explicit%>
4
9184
by: google.com | last post by:
Hi there! I've been digging around looking for a sample on how to upload a file without user action. I found the following article covering the area: http://www.motobit.com/tips/detpg_uploadvbaie/ It describes the vba code required to handle a very simple upload form:
5
7865
by: mmcd79 | last post by:
I built a VB.net application that makes use of a machine level DB connection string setting, and a user level starting location setting. The machine level setting and the default user based setting is of course stored in the app.exe.config file located in the same directory as the exe. Upon closing the form, I save the user setting which then creates a user.config file in the appdata directory in my profile. This is all well and good....
1
1717
by: seejay1982 | last post by:
Hi, I am writing an application where I create a temporary file on the client machine and I have to upload this file to a CGI on the server. This needs to be done without the user interaction. I've looked at the FileUpload object but it requires user interaction. Is there any way I can upload the file without the user interaction? Thanks in advance for your help. Seejay
6
4962
by: Laphan | last post by:
Hi All I can't get round this because it's a local government thing, but I've done a CMS for a school (in ASP classic) that allows them to upload gifs, jpgs, pdfs and docs to their site for the usual CMS stuff. Works fine on my host as I use ASPupload and I have one FTP location for my data, but I've now found out that I've got to put the site on the local government's servers and they only provide the following setup:
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10222
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9866
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8876
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5310
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2815
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.