Contact Form Example

Demonstrates PAGI::Request form handling and file uploads.

Run

pagi-server --app examples/13-contact-form/app.pl --port 5000

Visit http://localhost:5000/

Features

Upload Limits

Pass per-request limits to form_params (the call that triggers multipart parsing):

my $form = await $req->form_params(max_file_size => 5 * 1024 * 1024);

To change a default process-wide, local-ize the package variable in PAGI::Request::MultiPartHandler (e.g. $MAX_FILE_SIZE).

API