Skip to content

Commit fb318fc

Browse files
author
thegitfather
committed
disabled imageDimensions (bug ngFileUpload?)
danialfarid/ng-file-upload#1490
1 parent 1750212 commit fb318fc

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

client/app/gallery/gallery-create.controller.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ angular.module('photoboxApp')
1919
ngfKeep: "'distinct'",
2020
ngfMinRatio: "2:3.01",
2121
ngfMaxRatio: "16.01:9",
22+
ngfMinWidth: "400",
23+
ngfMaxWidth: "4400",
2224
ngModelOptions: { allowInvalid: true }
2325
});
2426

@@ -29,10 +31,11 @@ angular.module('photoboxApp')
2931
}
3032

3133
$scope.$watchCollection('vm.files', function(newVal, oldVal) {
34+
console.log("newVal:", newVal);
3235
var fileErrors = 0;
3336
for (var i = 0; i < newVal.length; i++) {
3437
if (newVal[i].dimensions === undefined) {
35-
appendDimensions(newVal[i]);
38+
// appendDimensions(newVal[i]);
3639
}
3740
if (newVal[i].$error !== undefined) {
3841
fileErrors += 1;

client/components/upload-list/upload-list.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="pseudo-table">
33
<div class="row head">
44
<div class="cell name">Filename</div>
5-
<div class="cell image-dims">Dimensions</div>
5+
<!-- <div class="cell image-dims">Dimensions</div> -->
66
<div class="cell size">Size</div>
77
<div class="cell upload-progress">Upload progress</div>
88
<div class="cell preview-thumb">Preview</div>
@@ -12,9 +12,9 @@
1212
<div class="cell name">
1313
{{file.name}}
1414
</div>
15-
<div class="cell image-dims">
15+
<!-- <div class="cell image-dims">
1616
{{ file.dimensions.width }}&times;{{ file.dimensions.height }}
17-
</div>
17+
</div> -->
1818
<div class="cell size">
1919
{{convertBytesToKB(file.size)}} KB
2020
</div>

0 commit comments

Comments
 (0)