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

How to transfer local file to web server when name of local file is known to server, not web end user?

I am trying to transfer a file from a user's local machine (the file is
automatically created by a 3rd party tool and stored in the users local
settings/temp directory) via a web form to my web server. I am using Visual
Studio.Net 2003 and running IIS 5.0. There is no need to use the input=file
html control b/c the user has no idea the name of the temporary file that I
need to capture and store on the server. I believe the "value" property on
the input=file control is disabled in IE. My server side code knows the
name and location of the local file, I just want to add a "Save" function to
my web from that transfers this file to the web server.

Thanks,
Peter
Nov 18 '05 #1
2 1504
There is no way to do this. It would be a major security flaw, if web apps
could upload files at will. The user has to be the one to select the file.

"Peter White" <pe***@vocada.com> wrote in message
news:Hf*******************@newssvr24.news.prodigy. com...
I am trying to transfer a file from a user's local machine (the file is
automatically created by a 3rd party tool and stored in the users local
settings/temp directory) via a web form to my web server. I am using Visual Studio.Net 2003 and running IIS 5.0. There is no need to use the input=file html control b/c the user has no idea the name of the temporary file that I need to capture and store on the server. I believe the "value" property on the input=file control is disabled in IE. My server side code knows the
name and location of the local file, I just want to add a "Save" function to my web from that transfers this file to the web server.

Thanks,
Peter

Nov 18 '05 #2
Just to clarify - I want the end user to initiate the transfer of the local
file to the web server. It's just that the filename is cyrptic and long, and
the end user wouldn't have a clue about how to find it. I suppose I could
post the name of the local file on form, and then ask the user to cut and
past the filename into the upload dialogue box. I was hoping someone would
have a more elegant solution.

Thx,
Peter

"Marina" <so*****@nospam.com> wrote in message
news:eT**************@TK2MSFTNGP15.phx.gbl...
There is no way to do this. It would be a major security flaw, if web apps
could upload files at will. The user has to be the one to select the file.

"Peter White" <pe***@vocada.com> wrote in message
news:Hf*******************@newssvr24.news.prodigy. com...
I am trying to transfer a file from a user's local machine (the file is
automatically created by a 3rd party tool and stored in the users local
settings/temp directory) via a web form to my web server. I am using Visual
Studio.Net 2003 and running IIS 5.0. There is no need to use the

input=file
html control b/c the user has no idea the name of the temporary file that I
need to capture and store on the server. I believe the "value" property on
the input=file control is disabled in IE. My server side code knows

the name and location of the local file, I just want to add a "Save"

function to
my web from that transfers this file to the web server.

Thanks,
Peter


Nov 18 '05 #3

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

Similar topics

2
by: Anthony Reeves | last post by:
I've looked, and not sure how to do this. I need to transfer a file from the local client machine to the web server. this would-be a whole a directory of files. I looked at ftp_put, but I don't...
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...
11
by: Alexander Bosch | last post by:
Hi, I'm having a problem similar to the one that's stated in this KB http://support.microsoft.com/default.aspx?scid=kb;en-us;839521 When I'm posting a page to itself with the bool value as true it...
4
by: Brian | last post by:
Hi, I'm trying to make an online FTP utility in C# ASP.NET using MSINET.ocx (an active X control a.k.a. "Microsoft Internet Transfer Control") I've added the reference into my project and have...
5
by: aure_bobo | last post by:
Hi all, I'm currently developing a system with several webapps in ASP.NET/C#. One of my website is used to login user : I will call this website Webapp1. Depending on the user attributes, I...
16
by: JonnyD | last post by:
I am working on a project to build a reporting web app from an exsiting database that is controled by a local application. The application that has control over the database creates a lock file to...
5
by: sat | last post by:
Hi, I'm working as a DB2 UDB DBA. I have some questions regarding SCP command... Actually every week redirect restore takes place from one of my production servers to test servers.. So, but...
0
by: vasikaran | last post by:
Hi , i hava one ftp script in batch file programming , ftp script is working fine.. but my is i dont know how much files and what are files avaiulable in remote folder ,,,, if any errors or...
6
by: Thom Little | last post by:
I need to transfer an XML file between an application on the client and the server. This would in fact be a copy of the application's .config file. HTML <input form=...would transfer the file...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.