>
> *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.

    http://mojolicious.org/perldoc/Mojo/Message#upload

There is also documentation about how to deal with uploads right in the 
tutorial.

    http://mojolicious.org/perldoc/Mojolicious/Guides/Tutorial#File-uploads

And regarding deprecations, everything can be deprecated. It is highly 
unlikely, but can happen.

--
sebastian

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to