DOKK / manpages / debian 12 / libcatmandu-fedoracommons-perl / Catmandu::FedoraCommons::Model::upload.3pm.en
Catmandu::FedoraCommons::Model::upload(3pm) User Contributed Perl Documentation Catmandu::FedoraCommons::Model::upload(3pm)

Catmandu::FedoraCommons::Model::upload - Perl model for the Fedora 'upload' REST call

  use Catmandu::FedoraCommons;
  
  my $fedora = Catmandu::FedoraCommons->new('http://localhost:8080/fedora','fedoraAdmin','fedoraAdmin');
  
  my $obj = $fedora->upload(file => 't/marc.xml')->parse_content;
  
  {
    'id' => 'upload://11'
  }

Catmandu::FedoraCommons

2023-02-05 perl v5.36.0