473,473 Members | 2,153 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Programmatically upload file from client machine

I am stuck with this problem and desperately need your help.

I would like to upload an xml file or any file from client machine and
then save it to the server machine. Since the file path on the client
machine is predefined within the program, I am using the HTMLInputFile
control, postedfile, saveas ... and set the input control visibility
to hidden. However, the control value is read only and there is no way
I can set the client file path. I am wondering if there is a simple
way to uploading a file without user selection/specification?

Thanks in advance for your help.
Beatrice
Nov 18 '05 #1
6 6467
Hello

There is no way you can do this with HTML. The value property is read only
for security so that malicious sites don't attempt to read files from the
client computer
without the user approval. If browsers allow this, it would be a big
security hole.

Best regards,
Sherif

"Beatrice" <bw**@axonetinc.com> wrote in message
news:96**************************@posting.google.c om...
I am stuck with this problem and desperately need your help.

I would like to upload an xml file or any file from client machine and
then save it to the server machine. Since the file path on the client
machine is predefined within the program, I am using the HTMLInputFile
control, postedfile, saveas ... and set the input control visibility
to hidden. However, the control value is read only and there is no way
I can set the client file path. I am wondering if there is a simple
way to uploading a file without user selection/specification?

Thanks in advance for your help.
Beatrice

Nov 18 '05 #2
Hello

There is no way you can do this with HTML. The value property is read only
for security so that malicious sites don't attempt to read files from the
client computer
without the user approval. If browsers allow this, it would be a big
security hole.

Best regards,
Sherif

"Beatrice" <bw**@axonetinc.com> wrote in message
news:96**************************@posting.google.c om...
I am stuck with this problem and desperately need your help.

I would like to upload an xml file or any file from client machine and
then save it to the server machine. Since the file path on the client
machine is predefined within the program, I am using the HTMLInputFile
control, postedfile, saveas ... and set the input control visibility
to hidden. However, the control value is read only and there is no way
I can set the client file path. I am wondering if there is a simple
way to uploading a file without user selection/specification?

Thanks in advance for your help.
Beatrice

Nov 18 '05 #3
Thanks Sherif!

Then, is there any way to upload xml document on the client-side using JScript?

Thanks again!
Beatrice
"Sherif ElMetainy" <el*************@wayout.net.NOSPAM> wrote in message news:<us*************@TK2MSFTNGP10.phx.gbl>...
Hello

There is no way you can do this with HTML. The value property is read only
for security so that malicious sites don't attempt to read files from the
client computer
without the user approval. If browsers allow this, it would be a big
security hole.

Best regards,
Sherif

"Beatrice" <bw**@axonetinc.com> wrote in message
news:96**************************@posting.google.c om...
I am stuck with this problem and desperately need your help.

I would like to upload an xml file or any file from client machine and
then save it to the server machine. Since the file path on the client
machine is predefined within the program, I am using the HTMLInputFile
control, postedfile, saveas ... and set the input control visibility
to hidden. However, the control value is read only and there is no way
I can set the client file path. I am wondering if there is a simple
way to uploading a file without user selection/specification?

Thanks in advance for your help.
Beatrice

Nov 18 '05 #4
Thanks Sherif!

Then, is there any way to upload xml document on the client-side using JScript?

Thanks again!
Beatrice
"Sherif ElMetainy" <el*************@wayout.net.NOSPAM> wrote in message news:<us*************@TK2MSFTNGP10.phx.gbl>...
Hello

There is no way you can do this with HTML. The value property is read only
for security so that malicious sites don't attempt to read files from the
client computer
without the user approval. If browsers allow this, it would be a big
security hole.

Best regards,
Sherif

"Beatrice" <bw**@axonetinc.com> wrote in message
news:96**************************@posting.google.c om...
I am stuck with this problem and desperately need your help.

I would like to upload an xml file or any file from client machine and
then save it to the server machine. Since the file path on the client
machine is predefined within the program, I am using the HTMLInputFile
control, postedfile, saveas ... and set the input control visibility
to hidden. However, the control value is read only and there is no way
I can set the client file path. I am wondering if there is a simple
way to uploading a file without user selection/specification?

Thanks in advance for your help.
Beatrice

Nov 18 '05 #5
Although there are methods that allow you to use client side files,
they will all ask you to confirm it's use, or will stop you if you
dont have privileges. Consider using an HTA instead of an HTM
application. You get asked, but only once.

On 6 Apr 2004 09:29:19 -0700, bw**@axonetinc.com (Beatrice) wrote:
Thanks Sherif!

Then, is there any way to upload xml document on the client-side using JScript?

Thanks again!
Beatrice
"Sherif ElMetainy" <el*************@wayout.net.NOSPAM> wrote in message news:<us*************@TK2MSFTNGP10.phx.gbl>...
Hello

There is no way you can do this with HTML. The value property is read only
for security so that malicious sites don't attempt to read files from the
client computer
without the user approval. If browsers allow this, it would be a big
security hole.

Best regards,
Sherif

"Beatrice" <bw**@axonetinc.com> wrote in message
news:96**************************@posting.google.c om...
> I am stuck with this problem and desperately need your help.
>
> I would like to upload an xml file or any file from client machine and
> then save it to the server machine. Since the file path on the client
> machine is predefined within the program, I am using the HTMLInputFile
> control, postedfile, saveas ... and set the input control visibility
> to hidden. However, the control value is read only and there is no way
> I can set the client file path. I am wondering if there is a simple
> way to uploading a file without user selection/specification?
>
> Thanks in advance for your help.
> Beatrice


Nov 18 '05 #6
Although there are methods that allow you to use client side files,
they will all ask you to confirm it's use, or will stop you if you
dont have privileges. Consider using an HTA instead of an HTM
application. You get asked, but only once.

On 6 Apr 2004 09:29:19 -0700, bw**@axonetinc.com (Beatrice) wrote:
Thanks Sherif!

Then, is there any way to upload xml document on the client-side using JScript?

Thanks again!
Beatrice
"Sherif ElMetainy" <el*************@wayout.net.NOSPAM> wrote in message news:<us*************@TK2MSFTNGP10.phx.gbl>...
Hello

There is no way you can do this with HTML. The value property is read only
for security so that malicious sites don't attempt to read files from the
client computer
without the user approval. If browsers allow this, it would be a big
security hole.

Best regards,
Sherif

"Beatrice" <bw**@axonetinc.com> wrote in message
news:96**************************@posting.google.c om...
> I am stuck with this problem and desperately need your help.
>
> I would like to upload an xml file or any file from client machine and
> then save it to the server machine. Since the file path on the client
> machine is predefined within the program, I am using the HTMLInputFile
> control, postedfile, saveas ... and set the input control visibility
> to hidden. However, the control value is read only and there is no way
> I can set the client file path. I am wondering if there is a simple
> way to uploading a file without user selection/specification?
>
> Thanks in advance for your help.
> Beatrice


Nov 18 '05 #7

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

Similar topics

2
by: Pedro Carvalho | last post by:
I am using a WebClient.Upload File method (using the HTTP POST) on the Client side and, to accept posted files on the Server side, I am using an ASP.NET page with the following code: void...
3
by: WM Chung | last post by:
Hello all, My dotnet application configuration is that the client, Web server and database all reside in 3 different computers. There is a function which can browse a file and read in the...
1
by: alfredfx | last post by:
i'm planning to develop a client server system the client and server both able to upload picture client will upload the picture to a folder that reside in the server while server user can also...
5
by: John Lee | last post by:
Hi, I have a simple web page that allow file to be uploaded, the upload page looks like the following: <form method="post" name="upload" enctype="multipart/form-data"...
3
by: Beatrice | last post by:
I am stuck with this problem and desperately need your help. I would like to upload an xml file or any file from client machine and then save it to the server machine. Since the file path on the...
0
by: vbdotnetmentor | last post by:
I'm trying to find out how to update an app.config file used in an application on a client machine. Currently the client application gathers data from certain sources and sends it through a...
7
by: Grace | last post by:
Does it have any ways that asp.net web application can create the file on client computer or get files from client computer? Thanks.
1
by: harriegovin | last post by:
Hi, Here is the scenario. I have a web application written in vb.net. One of the functionalities of the application is to save the recordset in an xml format on to the client machine. The xml...
4
by: Chris | last post by:
Hello, I am using asp.net. I have been searching this for a while, but dint find any solution yet. Any help will be appreciated. I have a string variable say 'myFile' that has complete path of...
0
by: jwei4920 | last post by:
does anyone know if there is a way to let user to upload file from their browser to the web server via ftp method but not http upload? I searched on the web and had a look at MSDN, the ftp method...
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...
1
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...
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.