Thanks @Manu_Mathew_ for a quick reply.
These are the documentation for class/API. I am looking for the global object 'resolver' to be used in sightly code.
It would be really helpful if you could share a few examples to validate if the resource exists or not using this global objects.
Thanks,
H...
Hi All,
I want to check if the resource exists or not using the sightly code. I was going through the documentation which consists of the global objects used in sightly : https://experienceleague.adobe.com/docs/experience-manager-htl/content/global-objects.html?lang=en.
I understand, there is a gl...
Hi All,
Is there a way to check if a resource exists using JS without getting 404?
I am unable to find any library which does this job. I am using clientside JS.
For example : I am using $.getJSON() but it does throw 404 in console logs, if its an invalid resource
Kindly let me know the best sol...
Hi,
So, it worked for me with a slight change of passing the image file as the data in AJAX call :
$.ajax({
type: 'POST',
processData: false,
url: fullUrl,
contentType: 'image/jpeg',
data: file,
succes...
Hi Ravi,
Thanks for a quick reply.
I tried the above solution and here is the ajax call : Made a slight change in the call - multipart/form-data as content type created a folder instead of an asset. So used image/jpeg instead.
$.ajax({
type: 'POST',
processData: fal...
Thanks for a quick reply.
The file that gets created under page/jcr:content is a nt:file and not dam:Asset.
I even tried to temporarily copy-paste the binary content from nt:file to the original rendition but no luck.
Hi @santhosh_kumark,
I have almost the similar kind of question - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/upload-asset-to-dam-path-using-coral-fileupload/m-p/566262#M141308Want to understand your answer : so, how would the asset be created in DAM path?
Can we use th...
Hi All,
Kindly suggest some way to upload the asset directly to a DAM path using the coralUI3 FileUpload resourceType.
I am trying to add a field in the properties page, similar to the thumbnail field. When the image is dragged and dropped from the machine, it creates a file under the page/jcr:c...