--
Sebastian Riedel
http://mojolicio.us
http://twitter.com/kraih
http://blog.kraih.com
> --
> You received this message because you are subscribed to the Google Groups "Mojolicious" group.
> To post to this group, send email to mojol...@googlegroups.com (mailto:mojol...@googlegroups.com).
> To unsubscribe from this group, send email to mojolicious...@googlegroups.com (mailto:mojolicious...@googlegroups.com).
> For more options, visit this group at http://groups.google.com/group/mojolicious?hl=en.
--
Sebastian Riedel
http://mojolicio.us
http://twitter.com/kraih
http://blog.kraih.com
Am Montag, 6. Juni 2011 um 15:13 schrieb Ilya Skorik (RU):
> C:\Workspace>mojo version
> CORE
> Perl (5.010001, MSWin32)
> Mojolicious (1.41, Smiling Face With Sunglasses)
>
> OPTIONAL
> IO::Epoll (not installed)
> IO::KQueue (not installed)
> IO::Socket::IP (not installed)
> IO::Socket::SSL (not installed)
> Net::Rendezvous::Publish (not installed)
>
> This version is up to date, have fun!
>
--
Sebastian Riedel
http://mojolicio.us
http://twitter.com/kraih
http://blog.kraih.com
Am Montag, 6. Juni 2011 um 15:21 schrieb Ilya Skorik (RU):
> Code:
>
> # die 1 if (-r $temppath); # TRUE
>
> my $headers = Mojo::Headers->new;
> $headers->add("Content-Type", "application/excel;name=$filename");
> $headers->add("Content-Disposition", "attachment;filename=$filename");
> $headers->add("Content-Description", "xls");
> $c->res->content->headers($headers);
> $c->res->content->asset(Mojo::Asset::File->new(path => $temppath ));
>
> $c->on_finish(sub {
> unlink $temppath;
> });
>
> $c->render_static();
>
--
Sebastian Riedel
http://mojolicio.us
http://twitter.com/kraih
Am Montag, 6. Juni 2011 um 16:16 schrieb Ilya Skorik (RU):
> It happens by operation through Windows 7 + Apache 2.2. In Mojo Server
> errors aren't present, I see dialogue of saving of a file
>
--
Sebastian Riedel
http://mojolicio.us
http://twitter.com/kraih
Am Montag, 6. Juni 2011 um 16:40 schrieb Ilya Skorik (RU):
> $c->tx->res->headers->header("content-type" => "binary/octet-
> stream;name=text.xls");
> $c->tx->res->headers->header("content-disposition" =>
> "attachment;filename=test.xls");
> $c->res->content->asset(Mojo::Asset::File->new(path => $temppath ));
> $c->rendered();
>
> = 404
>
--
Sebastian Riedel
http://mojolicio.us
http://twitter.com/kraih
http://blog.kraih.com
--
Sebastian Riedel
http://mojolicio.us
http://twitter.com/kraih
http://blog.kraih.com
Am Montag, 6. Juni 2011 um 16:49 schrieb Ilya Skorik (RU):
> Earlier this code worked! Now it is necessary to specify manually the
> code 200? How it to make?
>