[EP-tech] EPrints::DataObj::Document - add_archive

Ulf Laube ulf.laube at ontochem.com
Thu May 3 10:27:40 BST 2012


Hi,

I'm trying to add an archiv tar.gz to an eprint:

my $archive_format = "application/x-gzip";
        $doc = EPrints::DataObj::Document::create( $session, $eprint );
        $doc->add_archive( $full_file_path, $archive_format );
        $doc->commit

but it doesn't works. I tried 
$archive_format "application/x-gtar", ".tar.gz", "tar.gz", "tgz"

How can I add an whole archiv content to an eprint ?

reegards
ulf

-- 
OntoChem GmbH
Heinrich-Damerow-Str. 4
06120 Halle (Saale)
Germany
Tel. +49-345-478047-4
Fax: +49-345-478047-1

HRB 215461 Amtsgericht Stendal; USt-IdNr.: DE246232735


More information about the Eprints-tech mailing list