Hi Rajshekhar,

> Can I upload a single file using sword?
> I have tried this with sword-client-1.1 by uploading single pdf file, it 
> gives me "unsupported media file".
> 
> If no, then I need to upload the whole zip file similar to 
> [dspace-source]/dspace-sword/example/example.zip file.
> but it contains mets.xml file, which contains meta data information.

The SWORD implementation in DSpace will accept two types of deposit:

 - Full packages (such as example.zip) can be deposit into COLLECTIONS. The 
packages must contain the metadata (mets.xml) and files in order to create a 
new ITEM.

 - Single files can be deposited into existing ITEMS, and the new file will be 
added to the list of bitstreams.

You probably received that error because you were trying to deposit a single 
file into a COLLECTION, whereas you can only deposit it into an existing ITEM.

> How can I write that file?

You either have to create them yourself, or look at using a tools such as the 
PHP SWORD client library (http://github.com/stuartlewis/swordapp-php-library/) 
which includes a SWAP/METS packager that you can use 
(http://github.com/stuartlewis/swordapp-php-library/blob/master/packager_mets_swap.php).

Thanks,


Stuart Lewis
IT Innovations Analyst and Developer
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 (0)9 373 7599 x81928


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to