Just take a look at the SYNOPSIS <https://metacpan.org/pod/Mojolicious::Plugin::RenderFile>:
# Mojolicious > $self->plugin('RenderFile'); > > ... > > # In controller > $self->render_file('filepath' => '/tmp/files/file.pdf'); # file name will be > "file.pdf" > > "# Mojolicious" = my_app/lib/MyApp.pm "# In controller" = my_app/lib/MyApp/Celfilesmetainfo.pm You can't give 2 responses to a request (render file plus redirect). -- 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 mojolicious+unsubscr...@googlegroups.com. To post to this group, send email to firstname.lastname@example.org. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.