Преглед на файлове

Remove data length detection, because we work with URL

R4SAS преди 7 години
родител
ревизия
d3f9670bc2
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      js/privatebin.js

+ 2 - 2
js/privatebin.js

@@ -2866,10 +2866,10 @@ jQuery.PrivateBin = (function($, RawDeflate) {
 
                     // Firefox crashes with files that are about 1.5MB
                     // The performance with 1MB files is bearable
-                    if (data.length > 1398488) {
+                    /*if (data.length > 1398488) {
                         Alert.showError('File too large, to display a preview. Please download the attachment.'); //TODO: is this error really neccessary?
                         return;
-                    }
+                    }*/
 
                     // Fallback for browsers, that don't support the vh unit
                     var clientHeight = $(window).height();