yongtiger/js-ajaxfileupload 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yongtiger/js-ajaxfileupload

最新稳定版本:1.0.0

Composer 安装命令:

composer require yongtiger/js-ajaxfileupload

包简介

README 文档

README

Improved carlcarl/AjaxFileUpload and fixed some bugs.

Latest Stable Version Total Downloads Latest Unstable Version License

Features

  • add handleError
  • add start and beforeSend local callbacks of events
  • fix ie9 and ie 10
  • fix bugs: confict with yii.js(350)

Example:

ajaxFileUpload: function () {
    $.ajaxFileUpload({
        url: '<your url>',      // MUST! 
        secureuri: false,       // MUST!
        fileElementId:'<your file element id>', // MUST!
        type: 'post',           // MUST!
        data: '<your data>',    // MUST!
        dataType: 'json',       // MUST! `json`, `xml`, etc.

        // optional
        start: function () {
            // ...
        },

        // optional
        beforeSend: function () {
            // ...
        },

        // optional
        success: function (data, status) {
            // ...
        },

        // optional
        error: function (XMLHttpRequest, textStatus, errorThrown) {
            // ...
        },

        // optional
        complete: function () {
            // ...
        }
    });
},

References

See also

License

ajaxfileupload is released under the MIT license, see LICENSE file for details.

统计信息

  • 总下载量: 454
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-02-11