Javascript 精细上载装载机或旋转器未显示
我正在使用“精细上传”和“优步”脚本,现在正在上传,但微调器或上传进度条不起作用Javascript 精细上载装载机或旋转器未显示,javascript,php,jquery,fine-uploader,Javascript,Php,Jquery,Fine Uploader,我正在使用“精细上传”和“优步”脚本,现在正在上传,但微调器或上传进度条不起作用 $(function() { $('#UploadImagesBusiness').uberuploadcropper({ //--------------------------------------------------- // fineuploader options.. //-------------------------------------
$(function() {
$('#UploadImagesBusiness').uberuploadcropper({
//---------------------------------------------------
// fineuploader options..
//---------------------------------------------------
fineuploader: {
//debug : true,
request : {
// params: {}
endpoint: 'image_upload_business_logo/uploadbusinessEdit.php'
},
validation: {
sizeLimit : 512000,
allowedExtensions: ['jpg','jpeg','png','gif']
}
},
//---------------------------------------------------
//now the cropper options..
//---------------------------------------------------
jcrop: {
aspectRatio : 1,
allowSelect : true, //can reselect
allowResize : true, //can resize selection
minSize : [ 150, 150 ], //if you want to be able to resize, use these
maxSize : [ 200, 200 ],
setSelect : [ 0, 0, 250, 250 ] //these are the dimensions of the crop box x1,y1,x2,y2
},
//---------------------------------------------------
//now the uber options..
//---------------------------------------------------
folder : '../business/uploads/business-images/thumbmails/', // only used in uber, not passed to server
cropAction : 'image_upload_business_logo/cropbusinessEdit.php', // server side request to crop image
onComplete : function(e,imgs,data) {
$('.business-logo').remove();
$('#businessLogo').val(imgs[0].filename);
$('#PhotoPrevsBusiness').html('');
var $PhotoPrevs = $('#PhotoPrevsBusiness');
for(var i=0,l=imgs.length; i<l; i++){
$PhotoPrevs.append('<img src="../business/uploads/business-images/thumbmails/'+ imgs[i].filename +'?d='+ (new Date()).getTime() +'" />');
}
}
});
});
$(函数(){
$(“#UploadImagesBusiness”).uberuploadcropper({
//---------------------------------------------------
//fineuploader选项。。
//---------------------------------------------------
精细上传器:{
//是的,
请求:{
//参数:{}
端点:“image\u upload\u business\u logo/uploadbusinessEdit.php”
},
验证:{
sizeLimit:512000,
允许的扩展:['jpg'、'jpeg'、'png'、'gif']
}
},
//---------------------------------------------------
//现在是裁剪器选项。。
//---------------------------------------------------
jcrop:{
方面:1,
allowSelect:true,//可以重新选择
allowResize:true,//可以调整所选内容的大小
minSize:[150150],//如果希望能够调整大小,请使用这些
最大尺寸:[200200],
setSelect:[0、0、250、250]//这些是裁剪框x1、y1、x2、y2的尺寸
},
//---------------------------------------------------
//现在是优步选项。。
//---------------------------------------------------
文件夹:“../business/uploads/business images/thumbmails/”,//仅在uber中使用,未传递到服务器
cropAction:'image\u upload\u business\u logo/cropbusinessEdit.php',//服务器端请求裁剪图像
onComplete:函数(e,imgs,data){
$('.business logo')。删除();
$('#businessLogo').val(imgs[0].filename);
$('#PhotoPrevsBusiness').html('');
var$PhotoPrevs=$(“#PhotoPrevsBusiness”);
对于(var i=0,l=imgs.length;iThanks for the Edit APersonIt看起来你甚至没有使用Fine Uploader。你需要提供更多信息,说明Fine Uploader是如何安装和导入的。最好的办法是查看浏览器开发工具中的JavaScript控制台,以关注这个问题。我正在uber th中使用uber Uploaderey正在使用精细上传器:)