Hi,
I have a shell script running on AEM server which uploads assets from a shared drive to AEM (6.0 SP2) over regular interval. I am using curl script to ingest this file to AEM although what i am noticing that previous version information of asset is getting lost.
curl -s -u admin:admin -F "jcr:primaryType=dam:Asset" "$aemServer""$aemAssetPath"
curl -s -u admin:admin -F "jcr:primaryType=dam:AssetContent" "$aemServer""$aemAssetPath"/jcr:content
curl -s -u admin:admin -F "jcr:primaryType=nt:folder" "$aemServer""$aemAssetPath"/jcr:content/renditions
curl -s -u admin:admin -F "jcr:primaryType=nt:unstructured" -F "jcr:mixinTypes=cq:Taggable" "$aemServer""$aemAssetPath"/jcr:content/metadata
curl -s -u admin:admin --form original="@$assetName" --form "$assetName@TypeHint"=nt:file "$aemServer""$aemAssetPath"/jcr:content/renditions
Please help. Is there a way i can ingest an asset using script and can also maintain version information (like when we upload existing asset from UI)
Thanks !