3
나는 Blueimp JQuery와 업 로더 https://github.com/blueimp/jQuery-File-Upload 파일 구현하고 나는 첫 번째 이미지가 추가 된 후 previewMaxWidth 및 previewMaxHeight을 변경 꿔 (blueimp) 업로드 파일. 이는 제품 기능 이미지와 제품의 후속 뷰를 갖고 있기 때문에 각 기능 이미지보다 작게 표시되어야하기 때문입니다.변경 previewMaxWidth/높이 프로그래밍
여기 내 파일 업로드 호출입니다 :
$('.imageupload').fileupload({
autoUpload : true,
acceptFileTypes : /(\.|\/)(gif|jpe?g|png)$/i,
previewMaxWidth : 198,
previewMaxHeight : 800,
uploadTemplateId : 'product-add-image-upload',
downloadTemplateId : 'product-add-image-download'
}).bind('fileuploadadded', function(e, data) {
// change preview width/height to 60px/60px after first image loaded
// not sure what to put here
});
나는 믿을 수 없다. 감사. 그것은 완벽하게 작동합니다! –