Home  >  Article  >  Backend Development  >  php怎么通过jquery获取 $_FILES['file']['name']的值

php怎么通过jquery获取 $_FILES['file']['name']的值

WBOY
WBOYOriginal
2016-06-13 12:49:26895browse

php如何通过jquery获取 $_FILES['file']['name']的值?
在客户端放一个对象,如何用jquery 的post方法传值并在服务器端php文件里获取对象 $_FILES['file']['name']的值


------解决方案--------------------
用jquery forms 中的 ajaxSubmit
------解决方案--------------------
直接form提交就能获得:
enctype="multipart/form-data" action="__URL__" method="POST">
    Send this file: 
    
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