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

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 6461
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...
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
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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: 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...

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.