|
楼主 |
发表于 2015-7-27 16:55:49
|
显示全部楼层
attachmentSimple.js这个文件里actionUrl 应该是上传文件的路径,我改成我的,不起作用。还是调用的simpleFileStore.j。
initUploader:function(){
var self = this;
var actionUrl = require.toUrl("$UI/system/service/doc/common/simpleFileStore.j");
//var actionUrl = require.toUrl("http://localhost:8088/nongyeyun/json/testfile.action");
alert(1111);
self.uploader = new Uploader(self.$domNode.find('.x-item-upload'),{
actionUrl:actionUrl
});
self.uploader.on('onStart',function(event){
var storeFileName = (new justep.UUID()).valueOf();
self.uploader.data = {
storeFileName : storeFileName,
ownerID:self.getOwnerID()
}
}); |
|