
Anonymous Community User asked a question.
BulkDownload now returning errors
We have a customer who is using a script to download files we send to a shared folder on ShareFile. The script uses the Items/BulkDownload method to download all the files in the shared folder. They've been using the same script successfully since 2018. On 2/24/2023, they reported that they are getting errors when they run the script. I'd appreciate any tips anyone might have.The relevant Perl code is listed below. The error string returned by the $ua->request(POST ...) statement follows the code: my $url = $hostname . '/sf/v3/Items/BulkDownload?parentid=$parent_id&redirect=false'; my $ua = LWP::UserAgent->new; $ua->default_header('Authorization' => 'Bearer $access_token'); my $response = $ua->request(POST $url, [ '' => \\\\@file_ids ]); {'code':'UnsupportedMediaType','message':{'lang':'en-US','value':'Media type [application/x-www-form-urlencoded] not supported for the request.'},'reason':'Unspecified'}