简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM