Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118592 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 51276 invoked from network); 10 Sep 2022 09:32:10 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Sep 2022 09:32:10 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9A7131804FF for ; Sat, 10 Sep 2022 02:32:08 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,SPF_HELO_SOFTFAIL, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS4713 180.0.0.0/10 X-Spam-Virus: No X-Envelope-From: Received: from mx3.es-i.jp (gw1.es-i.jp [180.42.98.129]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 10 Sep 2022 02:32:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ohgaki.net; s=default; h=MIME-Version:References:In-Reply-To: From:Date:Message-ID:Subject:To:Cc:Content-Type; bh=7eG6R7xCGCkS 4X7G+CMs7xWHx30jIPB12XWYXIuQNRs=; b=BT1mvd8DPXr5vExAKiYNd3lA1FFC glchrW1YyLH2ksy72c6219rd+0WBnQkBmZiFqbNm0j0/me3onxiV+7xv4nAQRRaZ IZ5EfHivZLwxNa5kBUZN26qdvYYwqrR1ka9AfigR/3RZJRvwmFRFN9PlB0b6llsH PaCKqBqMwMQ0UMz1nnprbUVxXPObzuO42csLaQ6jG2su9lQRZuHAQZ7Hzkr4G93Q KxOlybl5m6esQAsSHQpgW4lBXGVRVfsoLYSZ1Ulit5JdKC38kAOE3MOWdqKU48lU gJssUDSH/+k2nDz4wGDdL/olHPjazcQtdyJU3BKyD+Ne+TLRFkHHSHSAGQ== Received: (qmail 30916 invoked by uid 89); 10 Sep 2022 09:32:03 +0000 Received: from mail-ej1-f49.google.com (yohgaki@ohgaki.net) by mx3.es-i.jp with ESMTPA; 10 Sep 2022 09:32:03 +0000 Received: by mail-ej1-f49.google.com with SMTP id nc14so9474575ejc.4 for ; Sat, 10 Sep 2022 02:32:03 -0700 (PDT) X-Gm-Message-State: ACgBeo3QQDNquB3MbgsG9H8dXoGBmbLdyqARsLx5e+DJ8jn8Xr8mawgt 2iJq6/nxEbKUdUsbDr/lwL5yuopIQDrPARUBng== X-Google-Smtp-Source: AA6agR5XWY/fl/Ri+BnU0gU8vyHqepcXKSfCJuXrY4KoOxLyN7EHeGqy44BvKwzFxs3cs8CC9i0QvhcshYXuAUHh8Wc= X-Received: by 2002:a17:906:7954:b0:74d:ed4f:c7f0 with SMTP id l20-20020a170906795400b0074ded4fc7f0mr12831879ejo.674.1662802317734; Sat, 10 Sep 2022 02:31:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 10 Sep 2022 18:31:20 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Misha Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000007af8eb05e84f5562" Subject: Re: [PHP-DEV] Increase maximum size of an uploaded file to 50Mbyte From: yohgaki@ohgaki.net (Yasuo Ohgaki) --0000000000007af8eb05e84f5562 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2022=E5=B9=B49=E6=9C=887=E6=97=A5(=E6=B0=B4) 22:58 Misha : > Hello everyone, > > We spend a lot of time to increase limits for uploads file in PHP. Can we > increase it in php.ini? > > Current value is 2Mb. Its so small value, when photo image can take 8Mb o= n > iPhone X. > We should increase it to 50Mb, because DevOps engineers do useless work > trying to change it. > > I have prepared PR for it https://github.com/php/php-src/pull/9315 > > Take a look and approve it please. > > Thanks! > > -- > Best regards, Michail > I can understand the motivation, but I am against the change. To increase uploaded file max size, POST max size must be increased too. For 99.99% entry points do not need 50MB POST max size. and larger POST max size increases DoS risks. Default upload file max size and POST max size should be small enough value for better security. IMHO, PHP script that handles large POST data should increase these settings. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --0000000000007af8eb05e84f5562--