I am using the aem-upload tool to upload an asset to an AEM instance. The documentation says "all AEM as a Cloud Service instances will have direct binary upload enabled, so this library will work with those."
But, I get the following error.
Error: direct binary access not supported
Solved! Go to Solution.
Views
Replies
Total Likes
admin/admin doesnt work on Cloud Service environments.
You need to make a local account in your AEM as a Cloud Service author env under Tools > Security > Users and make sure it's permissioned to write to the specified assets folder.
Views
Replies
Total Likes
-
Views
Replies
Total Likes
@davidjgonzalezzI am using the script given in the example:
https://github.com/adobe/aem-upload#uploading-files
My target URL is 'http://localhost:4502/content/dam/';
Also, I am using the .withBasicAuth('admin:admin') option to authenticate.
Views
Replies
Total Likes
This is because you are trying to use the tool to upload to a local quickstart-based AEM (the AEM SDK presumably).
This tool must be run against a true AEM as a Cloud Service environment (that runs in the Adobe Cloud).
I have tried that against an author AEM as a Cloud Service Environment but getting "ENOTAUTHORIZED" error.
I am an admin - any idea what else I am missing?
Views
Replies
Total Likes
admin/admin doesnt work on Cloud Service environments.
You need to make a local account in your AEM as a Cloud Service author env under Tools > Security > Users and make sure it's permissioned to write to the specified assets folder.
Thank you. It worked. I made sure the user has the correct write permissions (for example: rep:write on /content/dam) or my user needs to be a part of DAM Users Group.
Views
Replies
Total Likes
hey @uafzal is it worked on AEM local instance? I am trying to upload on local instance but getting
Target AEM instance must have direct binary upload enabled'
please help - @davidjgonzalezz