上传文件名:
1.指定ws://对应后台Receiver,指定http://对应后台AjaxReceiver
需要引用Conver3.0
/*********剪切图片,后台自动处理模式+指定根目录的子文件夹保存**********/ var uploader = $('#uploadBtn').uploader({ url: 'ws://www.gongjuji.net/common/upload', fileExts: 'jpg;png', type: 'dialog', text: '剪切图片模式', subfolder: 'content',//默认后台处理简单模式 ,指定子文件夹 more: false,//是否可以上传多个 auto: true, //是否自动上传 coverParams: { title: '设置头像', targetWidth: 100, targetHeight: 100 }, onSuccess: function (data) { $('#name').text(data.newName); $('#relativeName').attr('src', data.relativeName); } });