The last two clarifying questions.
Example:
my $file = $self->req->upload('file');
print $file->slurp;
Is this a stable solution?
What do you advise to use in this case?
Here is my colleague's thesis:
I believe you that it works, but Mojolicious is still breaks it's interface from time to time and we already have had an accident dedicated for.
If this method(upload) isn't listed in official documentation, it's a sign that it could be deprecated.
Your colleague is wrong on this i'm afraid, if something is not documented we do not support it at all. There
would be no deprecation period, it would just disappear without warning. But of course the "upload" method
is documented and therefore a stable solution.
There is also documentation about how to deal with uploads right in the tutorial.
And regarding deprecations, everything can be deprecated. It is highly unlikely, but can happen.
--
sebastian