I keep finding that I’m doing things the hard way and that someone has already thought of this and has implemented something far better than my current attempt. Therefore I have to ask this question.
I need to import content with a well defined structure adobe multi-folio archives. These are zip files consisting of an xml content descriptor, a mime type file and a number of child folio archives. Folio.xml mimetype 0000_Cover.folio 0001_article_xx.folio 0002_artivle_yy.folio … The mime type contains: application/vnd.adobe.folio+zip% where each child .folio file is a zip consisting of another folio.xml descriptor file and additional media files: ├── Folio.xml ├── META-INF │ └── pkgproperties.xml ├── StackResources │ ├── asset_L.pdf │ ├── asset_P.pdf │ ├── scrubber_L1.jpg │ ├── scrubber_P1.jpg │ ├── thumb_L1.jpg │ ├── thumb_P1.jpg │ └── toc.jpg └── mimetype Is it possible to define a new content type for each of these, the parent multi-folio and the child folio structures such that when I post using something like: curl -u uid:pwd -F":contentType=multifolio" -F":operation=import" -F":contentFile=@~/bedge/issue.multifolio" http://localhost:8080/content/issue that the behavior would be to unpack the multifolio, then upon discovering the child .folio files, and recognizing the registered format for these, also unpack each of these? The gravy would be to also parse the folio.xml files and validate that all resources defined in the xml are indeed present, but I admit that’s getting greedy. -Bruce
