in reply to CGI.pm POST_MAX not working

"...limit uploads..."

You might take a look at File uploads with Mojolicious. And for further inspiration please see The Long Death of CGI.pm, Alternative to CGI.pm, Re^3: How do I run a loop within a PSGI application, and Re: Best practices: Generating HTML content.

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Replies are listed 'Best First'.
Re^2: CGI.pm POST_MAX not working
by adjuvant (Novice) on Jan 20, 2018 at 23:13 UTC

    Thanks, Karl. This project is already way too far along in CGI for me to consider re-doing it in Mojolicious or something similar, but if I ever try to convert another bioinformatic pipeline of mine to a web application (honestly, not likely), I'll consider another approach like you've suggested.

    Thanks!

Re^2: CGI.pm POST_MAX not working
by Anonymous Monk on Jan 20, 2018 at 22:53 UTC
    Hmm, none of those links show how to limit the size of uploads

      Ibidem, a bit below...?

      "To protect you from excessively large files there is also a limit of 16MiB by default, which you can tweak with the attribute "max_request_size" in Mojolicious."
      # Increase limit to 1GiB app->max_request_size(1073741824);

      «The Crux of the Biscuit is the Apostrophe»

      perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

        Thanks