I'm trying to upload a file and set properties on them at the same time. To be able to set a property on a nt:file it has to have a special mixin. I circumvented this, by creating a new nodetype called "sakai:file" which extends the nt:file nodetype and automatically has the appropriate mixin on it.
I can now do something like: curl -F"./*[email protected]" -F"./*...@typehint=sakai:file" http://admin:ad...@localhost:8080/foo/bar curl -F"stringProp=alfa" http://admin:ad...@localhost:8080/foo/bar/README.txt This sets a property on the created file and is what I want. But ideally, I want to combine those two into one request. Something along the lines of curl -F"./*[email protected]" -F"./*...@typehint=sakai:file" -F"./*/stringProp=alfa" http://admin:ad...@localhost:8080/foo/bar I had a quick look at the ModifyOperation and the SlingFileUploadHandler but didn't see anything in there that could handle this? Is there another way of doing this or am I looking at this in the wrong way? Kind regards, Simon
