Hello,

I was trying to insert a zip file to an existing item using SWORD, but
got an error saying "Unacceptable content type in deposit request:
application/zip". I had thought zip was always acceptable looking at
the source code.

My previous test with the example pdf file was successful. What could
have gone wrong?

Thanks,

Zhiwu

curl -i --data-binary "@fish.zip" -H "Content-Disposition:
filename=fish.zip" -H "Content-Type: application/zip" -H "X-No-Op:
false" -H "X-Verbose: true" -u $username:$pass
http://developer.tower.lib.vt.edu/sword/deposit/123456789/37824

HTTP/1.1 100 Continue

HTTP/1.1 415 Unsupported Media Type
Date: Thu, 19 Jul 2012 15:57:42 GMT
Content-Type: application/atom+xml;charset=UTF-8
Transfer-Encoding: chunked

<sword:error xmlns:atom="http://www.w3.org/2005/Atom";
xmlns:sword="http://purl.org/net/sword/";
href="http://purl.org/net/sword/error/ErrorContent";><atom:summary>Unacceptable
content type in deposit request:
application/zip</atom:summary><atom:title>ERROR</atom:title><atom:updated>2012-07-19T11:57:42.907Z</atom:updated><sword:userAgent>curl/7.19.7
(x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.12.9.0 zlib/1.2.3
libidn/1.18 libssh2/1.2.2</sword:userAgent></sword:error>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to