Home >Backend Development >PHP Tutorial >input file获得文件根目录简单实现_PHP

input file获得文件根目录简单实现_PHP

WBOY
WBOYOriginal
2016-06-01 12:08:10822browse

其实问题很简单
index.html
复制代码 代码如下:



烟台大学体测












upload.php
下面这段js代码就是获得file根目录,然后赋值给hidden类型input,然后就可以交给php or jsp 处理了
复制代码 代码如下:


input file获得文件根目录简单实现_PHP
Statement:
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