Negin
Negin

Reputation: 1

The file path of the file upload in php

In an html file, I have:

<form action="save.php" method="post" >
<input type="file" name="file" id="file`enter code here`" />
<input type="submit" name="submit"  value="Save" />

So I need the path of the uploaded file to the save.php page, please guide me.

Upvotes: 0

Views: 55

Answers (1)

Manish Chauhan
Manish Chauhan

Reputation: 570

The file won't be upload until you write PHP code in save.php file.

You will get values of selected file in $_FILES after submitting form data. Please use move_uploaded_file() PHP function to upload file.

Upvotes: 1

Related Questions