Skip to content

File uploads #93

Answered by bbrtj
rawleyfowler asked this question in Q&A
Jul 17, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@rawleyfowler I turned this into a discussion.

Kelp does not contain any special code to handle file uploads. You can handle uploaded files using https://metacpan.org/pod/Plack::Request#uploads, which is available in Kelp::Request (since Kelp::Request is a subclass of Plack::Request). The (very short) mention of that in the Kelp manual is here: https://metacpan.org/dist/Kelp/view/lib/Kelp/Manual.pod#File-uploads

From what I remember, Plack::Request uploads looks for files in multipart/form-data forms. This should be useful: https://everything.curl.dev/http/post/multipart.html

If you find Plack::Request handling of uploads unsatisfactory, you can always handle them yourself, for example by…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rawleyfowler
Comment options

Answer selected by bbrtj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #92 on July 17, 2025 16:26.