master
ELF 4 years ago
parent e2f74fda25
commit 5a5bd34e5d

@ -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'},

@ -221,7 +221,8 @@ 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",
@ -330,7 +331,7 @@ var uploader = WebUploader.create({
// swf文件路径
swf: '__STATIC__/webuploader/Uploader.swf',
// 文件接收服务端。
server: "{:U('File/shard_upload',array('session_id'=>session_id()))}",
server: backEndUrl,
// 选择文件的按钮。可选。
// 内部根据当前运行是创建可能是input元素也可能是flash.
pick: {id:'#picker'},

Loading…
Cancel
Save