html - How to get the full local path of the file when uploading it in php

WBOY
Release: 2016-08-23 09:17:44
Original
2185 people have browsed it

How can PHP obtain the full path of the file when uploading it locally, instead of the storage path after uploading to the server? ? ?

Reply content:

How can PHP obtain the full path of the file when uploading it locally, instead of the storage path after uploading to the server? ? ?

@leandre is right as he said above. It cannot be retrieved. When the front-end uploads a file, it will transfer the file to the server in multipart/form-data mode in stream. The server will receive the modified file. After streaming, write the file into a temporary file(/tmp). All you can operate in the future is this temporary file, which has no connection with the files that exist on the client side.

Cannot obtain this information. The browser will not report it to the server

Is it useful to get this?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!