We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1ba8e7 commit d15df4dCopy full SHA for d15df4d
1 file changed
lib/Plack/Request/Body.pm
@@ -60,6 +60,7 @@ package Plack::Request::Body::MultiPart;
60
our @ISA = qw( Plack::Request::Body );
61
use Carp ();
62
use File::Temp ();
63
+use File::Spec ();
64
use HTTP::MultiPartParser ();
65
use Plack::Request::Upload;
66
@@ -77,7 +78,8 @@ sub init {
77
78
on_body => sub { $self->on_body(@_); if ($_[1]) { $self->on_complete(@_) } },
79
);
80
- $self->{tempdir} = File::Temp->newdir;
81
+ my $template = File::Spec->catdir(File::Spec->tmpdir, "Plack-Request-Body-XXXXX");
82
+ $self->{tempdir} = File::Temp->newdir($template, CLEANUP => 1)
83
}
84
85
sub on_header {
0 commit comments