Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: CGI.pm POST_MAX not working

by karlgoethebier (Abbot)
on Jan 20, 2018 at 09:25 UTC ( [id://1207570]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1207570]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-19 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found