use Koha::CoverImages;
use JSON qw/to_json/;
-my $input = new CGI;
+my $input = CGI->new;
-my ( $auth_status, $sessionID ) =
+my ( $auth_status ) =
check_cookie_auth(
$input->cookie('CGISESSID'),
{ tools => 'upload_local_cover_images' } );
}
my $action = $input->param('action');
-my @imagenumbers = $input->param('imagenumber');
+my @imagenumbers = $input->multi_param('imagenumber');
# Array to store the reponse JSON
my $response = [];