09-14-2023 11:09 AM
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.
09-18-2023 04:24 AM
09-19-2023 06:16 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.