From d3f9670bc20334d6128876b6a02922ea64250bf0 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Wed, 12 Jun 2019 06:05:55 +0300 Subject: [PATCH] Remove data length detection, because we work with URL --- js/privatebin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 770bc8e..961fd9f 100644 --- a/js/privatebin.js +++ b/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();