Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Automatic, scheduled asset upload options.

Avatar

Avatar
Boost 1
Level 1
vampirofear
Level 1

Likes

2 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Applaud 5
View profile

Avatar
Boost 1
Level 1
vampirofear
Level 1

Likes

2 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Applaud 5
View profile
vampirofear
Level 1

15-08-2018

Hello All!

I'm new to AEM technologies and been going through documentation, Internet and this forum looking for the best solution to apply.

We have a solution that uploas pdf files to a DAM using a webservice. we want to modify this solution to upload the pdf files now to "Assets" and assign metadata to the uploaded asset, I found  that there are a few options as:

  1. HTTP API POST requests to handle the upload of files. HTTP API
    1. Pros:
      1. since are http requests can be done easily in Java application
      2. Fits to our needs since are very basic tasks (upload & assign metadata)
    2. Cons
      1. The documentation is not clear about how to make the requests, tried Curl and could create folder  but file upload is not working with the parameters of the manual.
  2. Asset Manager API to upload files  Asset Manager API
    1. Pros
      1. have more options to upload and custom  to  our needs
      2. Can be used  with a UI to select the files to upload, pending to valdiate if can be modified to upload files automatically without the use of the UI.
    2. Cons
      1. The examples work with a UI
      2. There is still pending the step to assign metadata automatically

have you been through this requirements before? if  so what is your recommendation on the best way to implement this solution?

Thank you in advance to all!!

Luis Moreno

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

15-08-2018

You can define a scheduler service that implements Runnable and have the scheduler kick off every so often. Say one every 2-3 hours. The service can scan a watched folder and them pull in any PDF it finds in the folder. Something like this:

Creating a Custom Watched Folder Service for Adobe Experience Manager 6.3

In your Service - use the Asset Manager API to place the PDF files into the AEM Dam. This article pulled in files into the AEM JCR, however, its an example and you will need to modify it to work with PDF files and also where you want to place the PDF files in the AEM JCR. .

Avatar

Avatar
Validate 25
MVP
Ratna_Kumar
MVP

Likes

158 likes

Total Posts

755 posts

Correct Reply

134 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile

Avatar
Validate 25
MVP
Ratna_Kumar
MVP

Likes

158 likes

Total Posts

755 posts

Correct Reply

134 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile
Ratna_Kumar
MVP

16-08-2018

Hi,

Yes, I too go with the approach Scott had suggested.

You can create the custom watched folder service with Scheduler. You an reference the article provided: Creating a Custom Watched Folder Service for Adobe Experience Manager 6.3

Here you need to work with PDF file rather than XML files.

Hope this helps!!

Thanks,

Ratna Kumar.

Avatar

Avatar
Validate 1
Level 10
edubey
Level 10

Likes

273 likes

Total Posts

1,502 posts

Correct Reply

392 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
Level 10
edubey
Level 10

Likes

273 likes

Total Posts

1,502 posts

Correct Reply

392 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
edubey
Level 10

17-08-2018

Avatar

Avatar
Boost 1
Level 1
vampirofear
Level 1

Likes

2 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Applaud 5
View profile

Avatar
Boost 1
Level 1
vampirofear
Level 1

Likes

2 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Applaud 5
View profile
vampirofear
Level 1

23-08-2018

Thank you for your response guys!

edubey​, I was creating POST request using POSTMAN to test. I will put here later today the command I'm using.

So there is still the challenge to set the metadata for each asset. I did not mentioned before but the goal is not bulk upload but one by one since each PDF file need specific metadata. Even if we can bulk upload all, I sill need the reference to each one to add the required metadata one by one.

I'll think a bit on the options and get back to you on what we applied in case this can be of use to anyone else in the future.

Thank you!