php异步上传文件
2017-11-15 13:32
337 查看
<form class="upload_pic_wrap" name="registerPerFrom" target="upload_file" enctype="multipart/form-data" method="POST" action="<?=UrlService::buildWeb("/upload/pic");?>"> <div class="upload_wrap pull-left"> <i class="fa fa-upload fa-2x"></i> <input type="file" name="licensePhoto" accept="image/png, image/jpeg, image/jpg,image/gif"> & 4000 lt;/div> </form> <iframe class="hide" name="upload_file"></iframe> <script> $('[name=registerPerFrom] input[name=licensePhoto]').change(function () { $('[name=registerPerFrom]').submit(); }); </script>
在form上面添加target属性,将提交结果返回到iframe里面
相关文章推荐
- javascript及php笔记:自己动手写一个ajax异步上传文件的jquery插件
- 基于PHP的AJAX技术实现文件异步上传
- php结合Ajax实现异步文件上传的代码实例
- 【Html5】JQuery插件ajaxFileUpload 异步上传文件(PHP版)
- PHP+ajaxForm异步带进度条上传文件实例
- php+ajax实现异步上传文件或图片功能
- php中通过Ajax如何实现异步文件上传的代码实例
- PHP+AjaxForm异步带进度条上传文件实例代码
- PHP异步上传文件到七牛
- PHP+iFrame实现页面无需刷新的异步文件上传
- Js+php实现异步拖拽上传文件
- Js+php实现异步拖拽上传文件
- php Ajax实现异步文件上传的代码
- 【转】JQuery插件ajaxFileUpload 异步上传文件(PHP版)
- ajax+php (jquery.form插件)实现异步文件上传
- PHP文件异步上传
- 基于Ajax+PHP的单文件、多文件异步上传实例
- 关于PHP+iFrame实现页面无需刷新的异步文件上传
- PHP结合jQuery插件ajaxFileUpload实现异步上传文件实例
- 基于PHP的AJAX技术实现文件异步上传