in reply to Setting CGI::POST_MAX with CGI::Application

To send the user back to your form runmode, instead of using a redirect, you can just call the method directly, like this:

sub upload_file { my $self = shift; # handle file upload.... return $self->form_mode; }

Replies are listed 'Best First'.
Re^2: Setting CGI::POST_MAX with CGI::Application
by dragonchild (Archbishop) on Nov 09, 2005 at 13:48 UTC
    And what happens now when the user hits Reload? These should always be redirects.

    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
      DC, I'm not following. The call to the default run mode should set the correct runmode param as a hidden var in the html ... so a reload should just reload the default form ... Am I missing something?
      -derby
        A browser's reload function will reload the URL that was sent, not the form that was received. Basically, don't think of it as a reload of the current page so much as a resend of the URL (including all params) that resulted in the current page. It's a resend of the request, not the response.

        My criteria for good software:
        1. Does it work?
        2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?