Replying to this in case someones looking at the message in the future. It
turns out this is the correct way to access uploaded files. I was just
being silly and I uploaded the wrong file, then thought it didn't work.
On Wed, May 30, 2012 at 4:14 PM, Jonathan Green <jonat...@discoverygarden.ca
> wrote:
> I was wondering how one would use the upload method listed here:
> https://wiki.duraspace.org/display/FEDORA35/REST+API#RESTAPI-Upload
>
> When I post a file I get back a URI of the form: uploaded://8287
>
> I has assumed I could use this URI in my foxml to do something like this:
>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <foxml:digitalObject xmlns:foxml="info:fedora/fedora-system:def/foxml#"
>> xmlns="info:fedora/fedora-system:def/foxml#" xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1"
>> PID="changeme:7" xsi:schemaLocation="info:fedora/fedora-system:def/foxml#
>> http://www.fedora.info/definitions/1/0/foxml1-1.xsd">
>> <foxml:objectProperties>
>> <foxml:property NAME="info:fedora/fedora-system:def/model#state"
>> VALUE="A"/>
>> <foxml:property NAME="info:fedora/fedora-system:def/model#label"
>> VALUE="test test"/>
>> </foxml:objectProperties>
>> <foxml:datastream ID="test" STATE="A" CONTROL_GROUP="M" VERSIONABLE="1">
>> <foxml:datastreamVersion ID="test.0" LABEL="" MIMETYPE="image/png"
>> FORMAT_URI="">
>> <foxml:contentLocation TYPE="URL" REF="uploaded://8277"/>
>> </foxml:datastreamVersion>
>> </foxml:datastream>
>> </foxml:digitalObject>
>>
>
> But that doesn't seem to be working. Does anyone have an example of using
> a URI retrieved from the the upload function in FOXML?
>
> Thanks.
>
> --
> Jonathan Green
> DiscoveryGarden Inc.
> Sims Office Suites Building, 3rd Floor, 118 Sydney Street
> Charlottetown, PE C1A 1G4
> 902.367.3851 discoverygarden.ca
> jonat...@discoverygarden.ca
> skype: jonathan.edwards.green
>
>
--
Jonathan Green
DiscoveryGarden Inc.
Sims Office Suites Building, 3rd Floor, 118 Sydney Street
Charlottetown, PE C1A 1G4
902.367.3851 discoverygarden.ca
jonat...@discoverygarden.ca
skype: jonathan.edwards.green
------------------------------------------------------------------------------
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/
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users