Authored by 姜敏

edit2-bucket校验

@@ -114,7 +114,7 @@ components.prototype={ @@ -114,7 +114,7 @@ components.prototype={
114 114
115 $('input[type="file"]', that.el).each(function() { 115 $('input[type="file"]', that.el).each(function() {
116 116
117 - var bucket= $(this).data("bucket")||that.option.bucket; 117 + var bucket= $(this).data("bucket")||that.option.bucket||$(this).attr("bucket");
118 118
119 if(!bucket){ 119 if(!bucket){
120 alert("bucket 不存在"); 120 alert("bucket 不存在");