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

WBOY
Release: 2016-06-13 12:49:26
Original
897 people have browsed it

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: 
    
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!