If you use the API, it should automatically create a temp file for you. Use the below code //CreateFile sample = File.createTempFile("sample", ".pdf");//DeleteFiles.delete(sample.toPath());Hope this helps. Thanks,Kiran Vedantam
Hi @Ronnie09 Please follow the steps in the below URL: https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-wknd-tutorial-develop/project-archetype/unit-testing.html?lang=en Hope this helps. Thanks,Kiran Vedantam.
Hi @wkk52586 What is the error thats coming in the logs?Can you confirm if the same page is working in author?Can you confirm if all the bundles are installed and active in publisher? Thanks,Kiran Vedantam.
Duplicate of https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/download-upload-assets-to-aem-using-api/td-p/432604 Thanks,Kiran Vedantam.
Hi @chetan001 After downloading the assets, instead of downloading and keeping it in root folder, create temp file, push it to AEM DAM and delete the temp file. You can use java.io.file API for this. Hope this helps!Thanks,Kiran Vedantam.
Hi @manikanthar1295 As you have mentioned, there are 2 ways to register a servlet (path and resource type). There are many advantages by binding a servlet to a resource type rather than a path discussed here: https://aem.redquark.org/2019/07/sling-servlet-04-registration-via.html Main advantage is ...
Try adding these in parent pom and core pom and build the code. <!-- https://mvnrepository.com/artifact/clojure-interop/javax.activity --><dependency><groupId>clojure-interop</groupId><artifactId>javax.activity</artifactId><version>1.0.0</version></dependency> <!-- https://mvnrepository.com/artifact...