Skip to content

Sample code to create a document in Nuxeo using an existing blob in S3

Notifications You must be signed in to change notification settings

mcedica/nuxeoS3DocImporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nuxeoS3DocImporter

Sample code to create an existing document in Nuxeo from an existing blob in S3.

Sample invocation:

mariana$ md5 /Users/mariana/Downloads/FooFigthers.pdf MD5 (/Users/mariana/Downloads/FooFigthers.pdf) = 1a29c592b09ee7725415efa354907426

mariana$ aws s3api put-object --bucket mariana --key 1a29c592b09ee7725415efa354907426 --body /Users/mariana/Downloads/FooFigthers.pdf --content-type application/pdf --metadata title=FooFighters.pdf

{ "ETag": ""1a29c592b09ee7725415efa354907426"" }

This creates the following document in Nuxeo:

File default-domain/UserWorkspaces/Administrator/FooFighters.pdf ... application/pdf FooFighters.pdf 9d77cb1.blob 1a29c592b09ee7725415efa354907426

About

Sample code to create a document in Nuxeo using an existing blob in S3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published