Hi Bruno, This is 3.1-specific ... not a bug exactly, but the mimeType parameter was not added to addDatastream and modifyDatastream methods until 3.2 (I think, definitely in 3.3). See:
http://www.fedora-commons.org/documentation/3.1/Fedora%20REST%20API.html#FedoraRESTAPI-addDatastream There are ways to workaround it using curl by setting the Content-type header with -XPOST, but I wasn't able to translate that solution using PHP & libcurl. You may have better luck with whatever you are coding your client in. cheers, Don On Fri, Aug 13, 2010 at 8:15 AM, Bruno Voisin <[email protected]> wrote: > Hello, > > I'm having an issue while using the REST API's "addDatastream" method. > > My issue is that no matter what i set as the value of the 'mimeType' > argument, any datastream i create comes up with a 'text/xml' MIME type. > The rest of the arguments work just fine. > > This is on Fedora 3.1, so maybe it's a known old bug? > > Regards, > -- > Bruno Voisin > Irish Centre for High-End Computing (ICHEC) > National University of Ireland, Galway > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Fedora-commons-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > -- Don Gourley IT services for libraries and museums http://www.linkedin.com/in/dongourley office: +1 443-951-9293 mobile: +1 410-487-5486 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Fedora-commons-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
