use LWP::MediaTypes;
use RT::Interface::REST;
use File::Temp qw(tempfile);
+my @tmp_files;
my $ticket = RT::Ticket->new($session{CurrentUser});
my $object = $r->path_info;
if ($fh) {
my $buf;
my ($w, $tmp) = tempfile();
+ push @tmp_files, $tmp;
my $info = $cgi->uploadInfo();
while (sysread($fh, $buf, 8192)) {
}
OUTPUT:
+
+unlink @tmp_files;
</%INIT>
RT/<% $RT::VERSION %> <% $status %>