|
|
|
@ -212,7 +212,9 @@ var userInfo = {userId:"kazaff", md5:""}; //用户会话信息
|
|
|
|
|
var chunkSize = 5000 * 1024; //分块大小
|
|
|
|
|
var uniqueFileName = null; //文件唯一标识符
|
|
|
|
|
var md5Mark = null;
|
|
|
|
|
var backEndUrl = "{:U('File/shard_upload',array('session_id'=>session_id()))}";
|
|
|
|
|
// var backEndUrl = "{:U('File/shard_upload',array('session_id'=>session_id()))}";
|
|
|
|
|
|
|
|
|
|
var backEndUrl = "http://8.136.139.249:8009/admin.php?s=/File/shard_upload.html";
|
|
|
|
|
WebUploader.Uploader.register({
|
|
|
|
|
"before-send-file" : "beforeSendFile",
|
|
|
|
|
"before-send" : "beforeSend",
|
|
|
|
@ -321,7 +323,7 @@ var uploader = new WebUploader.Uploader({
|
|
|
|
|
// swf文件路径
|
|
|
|
|
swf: '__STATIC__/webuploader/Uploader.swf',
|
|
|
|
|
// 文件接收服务端。
|
|
|
|
|
server: "{:U('File/shard_upload',array('session_id'=>session_id()))}",
|
|
|
|
|
server: backEndUrl,
|
|
|
|
|
// 选择文件的按钮。可选。
|
|
|
|
|
// 内部根据当前运行是创建,可能是input元素,也可能是flash.
|
|
|
|
|
pick: {id:'#picker'},
|
|
|
|
|