فهرست منبع

Fix #1649: Correct image size validation

Kartik Visweswaran 4 سال پیش
والد
کامیت
08c3dddb9d
3فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 1 0
      CHANGE.md
  2. 1 0
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 1 - 0
CHANGE.md

@@ -12,6 +12,7 @@ Change Log: `bootstrap-fileinput`
 - (bug #1652): Correct thumb parsing error for events when `showPreview` is false.
 - (enh #1651): Pass file id in `fileuploaded` event for non-resumable ajax async uploads.
 - (enh #1650): Update Ukranian Translations.
+- (bug #1649): Correct image size validation.
 - (enh #1648): New plugin method `getFilesSize` to return sum of bytes of all files.
 - (enh #1645): Update Polish Translations.
 - (bug #1123): Fix clickable zone behavior on file validation error.

+ 1 - 0
js/fileinput.js

@@ -4519,6 +4519,7 @@
             var self = this, exifObj, value, autoOrientImage = self.autoOrientImage, selector;
             if (self.canOrientImage) {
                 $img.css('image-orientation', (autoOrientImage ? 'from-image' : 'none'));
+                self._validateImage(previewId, fileId, caption, ftype, fsize, iData, exifObj);
                 return;
             }
             selector = $h.getZoomSelector(previewId, ' img');

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
js/fileinput.min.js


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است