Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


how to upload automatically a file to a web server

Posted on 2003-02-19
Medium Priority
Last Modified: 2010-04-09
I know already how to upload a file with HTML thanks to the POST method. So everything works correctly except that i don't want the people to choose by their own the path of the file that will be uploaded to the server. I'd like that they are only able to press the submit button to accept the sending. So i tried to give to the Input a hidden type, and to give it also a value (here the path of the selected file). (the code is below) But this doesn't work yet...
I would appreciate that u could give me a useful help in order to get out of this problem.

<form method="post" action="recevoir.php"  ENCTYPE="multipart/form-data">
  <input type="hidden" name="MAX_FILE_SIZE" value="1000000000">
  <input type="hidden" name="file_name" value="k:\projet\report.xml">
  <input type="hidden" name="nomfic" value="report.xml">
  <input TYPE="hidden" name="nomrep" VALUE="Report_stock/">  
  <input type="submit" name="submit" value="Transferer">
Question by:Baha
LVL 19

Accepted Solution

webwoman earned 400 total points
ID: 7982979
Not possible. You CANNOT grab files from the user without their consent.

Expert Comment

ID: 7983219
Well actually you can grab files with ASP, but not with normal HTML. Don't know about PHP.

Expert Comment

ID: 7984448
I think this is not possible,

becoz of the security restriction. if this can possible ... I can grab the files (say registry file) of some ones machine to see what he got by sending him a html form to fill it as a survey.

may be...


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

LVL 19

Expert Comment

ID: 7987824
You can't grab files from the CLIENT with ASP -- that's a SERVER side language.
LVL 53

Expert Comment

ID: 8820370
This question has been classified abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

Unless it is clear to me that the question has been answered I will recommend delete.  It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

If the user does not know how to close the question, the options are here:


LVL 53

Expert Comment

ID: 8963710
It is time to clean this abandoned question up.

I am putting it on a clean up list for CS.

points to webwoman


If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.



Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question