1 Star 0 Fork 34

chaizifu / fcup

forked from 封尘 / fcup 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

fcup.js

fcup是一款支持大文件切片上传插件。该jquery插件使用简单,配置简单明了,支持上传类型指定,进度条查看上传进度。。

pic

安装

直接下载源码,现有node和php两个接口案例,演示地址: http://fcphp.cn/fcup github:https://github.com/lovefc/fcup

使用方法

$.fcup({

    updom: '.fcup',//上传控件的位置dom
     
    //upid: 'upid',//上传的文件表单id,有默认
     
    shardsize : '0.5',//切片大小,(单次上传最大值)单位M,默认2M
     
    upstr: '上传文件',//按钮文字
     
    uploading: '上传中...',//上传中的提示文字
     
    upfinished: '上传完成',//上传完成后的提示文字
     
    upurl: './php/file.php',//文件上传接口 node接口:http://127.0.0.1:8888/upload
     
    //uptype: 'jpg,png,gif,jpeg',//上传类型检测,用,号分割
     
    errtype: '不支持此类型文件',//不支持类型的提示文字
     
    //接口返回结果回调
    upcallback : function(result){
         console.log(result);
    }
     
});

更新日志

2018/1/8 : 添加了对于接口返回结果的回调,添加了对于上传表单id的指定

2018/1/10 : 添加了node.js的上传接口,基于express框架

Empty file

About

fcup是一款支持大文件切片上传插件。该jquery插件使用简单,配置简单明了,支持上传类型指定,进度条查看上传进度,现有支持php和node.js的接口案例! expand collapse
JavaScript
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
JavaScript
1
https://gitee.com/chaizifu_admin/fcup.git
git@gitee.com:chaizifu_admin/fcup.git
chaizifu_admin
fcup
fcup
master

Search