Hello.
We use Alfresco 7 with AWS S3.
We use Nodes::createNode to create the node metadata and than use ContentWriter:: putContent to upload the file.
Is it possible to use Nodes::createNode only and copy the file from an external S3 bucket right into the Alfresco's S3 bucket?
If so, what S3 key should the file have? What additional properties we need to specify to bind the file to the metadata?
Thanks.
Thank you very much.
I have additional questions.
After creating metadata I have this value in the cm:content property contentUrl=s3v2://d95812c0-f8b5-4ec4-920e-1f36b1affc76.bin|mimetype=application/pdf|size=0|encoding=UTF-8|locale=en_US_|id=248.
So that means I need to put d95812c0-f8b5-4ec4-920e-1f36b1affc76.bin file in the bucket root.
But I have no idea how to get cm:content in code to find out the file name. And how to modify it to change size=0 to real size.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.