From 691aaa0bdd1d89228a78bd9ab603b2502f5d968d Mon Sep 17 00:00:00 2001 From: Walter Hupfeld Date: Tue, 12 Mar 2024 20:47:54 +0100 Subject: [PATCH] remove debug --- index.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 31662ad..480807b 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ * Autor: Walter Hupfeld, Hamm * E-Mail: info@hupfeld-software.de * Version: 3.0 - * Datum: 11.03.2024 + * Datum: 12.03.2024 ******************************** */ // Starte die Session @@ -451,7 +451,6 @@ var _URL = window.URL || window.webkitURL; if ((file = this.files[0])) { var file = this.files[0]; - console.log(file["size"]); var fileType = file["type"]; var validImageTypes = ["image/gif", "image/jpeg", "image/png"]; if ($.inArray(fileType, validImageTypes) < 0) { @@ -466,11 +465,10 @@ img.onload = function () { image_ok = (this.width<4000 && this.height<4000 && this.width>100 && this.height>100); //console.log("Breite:" + this.width + " Höhe: " + this.height); - /* if (!image_ok) { - alert("Bilder dürfen maximal 2000 x 2000 Pixel groß sein.\n" + alert("Bilder sollten maximal 4000 x 4000 Pixel groß sein.\n" +"Breite:" + this.width + " Höhe: " + this.height) - }*/ + } }; img.src = objectUrl; }