var uniqueId
var files = ""
var db = 0
upload.render({
elem: \'#ID-upload-demo-btn-2\',
url: \'../pnxpsc\', //
data: {
bj: function() {
return $(\'#bjxz\').val();
},
db: function() {
$(\'input[type="checkbox"][name="BBB"]:checked\').each(function() {
var number = parseFloat($(this).attr(\'value\'))
db += number
});
return db;
},
filename:function(){
return uniqueId;
},
},
headers: {
token: \'sa\'
},
multiple: true,
auto: false,
bindAction: "#ID-upload-demo-btn-3",
choose: function(obj) {
// $(\'#upload-demo-preview\').empty;
files = obj.pushFile();
console.log(files)
obj.preview(function(index, file, result) {
$(\'#upload-demo-preview\').append(\'<img src="\' + result + \'">\').find(\'img\').css({
widhth: 92,
height: 92,
margin: \'0 10px 10px 0\'
})
})
}
});
Dim e As RequestEventArgs = args(0)
Dim bj As String = e.values("bj")
Dim db As Double=e.values("db")
Dim xpid=e.values("filename")
\'Dim i As Integer=1
For Each key As String In e.files.keys
For Each fl As String In e.files(key)
e.savefile(key,fl,"/web/xp/wjxp/" & xpid & "-" & i &".jpg"
Next
i=i+1
Next
Dim obj As new Jobject
obj("status")="ok"
e.Writestring(obj.Tostring)
e.Handled=True \'\'
请问老师,你好,这个是前端牟取预览有多个文件,想上传后在后台将每个文件用 xpid连个i的形式来保存文件,现在是几个图片传过来文件名只有第一个,请问问题在哪里,该怎样改?谢谢