Unable to upload asset to AEM using aem-upload github tool | Community
Skip to main content
Level 2
March 16, 2021
Solved

Unable to upload asset to AEM using aem-upload github tool

  • March 16, 2021
  • 5 replies
  • 3459 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by davidjgonzalezzzz

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. 

 

5 replies

Adobe Employee
March 16, 2021
Can you provide exactly how you are invoking it?
Level 2
March 16, 2021

-

Level 2
March 16, 2021

@davidjgonzalezzzzI 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.

Adobe Employee
March 16, 2021

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).

 

Level 2
March 16, 2021

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?

davidjgonzalezzzzAdobe EmployeeAccepted solution
Adobe Employee
March 16, 2021

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. 

 

Level 2
March 17, 2021

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.

Level 2
September 23, 2022

hey @umair-afzal  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 - @davidjgonzalezzzz