- # given tmp_filename should contain no path, so strip if any
- my (undef, undef, $tmp_filename) = File::Spec->splitpath($::form->{tmp_filename});
- my $tmp_filename = File::Spec->catfile(SL::SessionFile->new->get_path, $tmp_filename);
+ my $key = $::form->{key};
+ my $tmp_filename = $::auth->get_session_value("Order::create_pdf-${key}");