AEM 6.4.1.0 - Which is servlet invoked by fileupload component

Avatar

Avatar

cquser1

Avatar

cquser1

cquser1

08-04-2019

Hi All,

Need to know the servlet invoked by fileupload[granite/ui/components/coral/foundation/form/fileupload] component.

Any thoughts/pointers on which is the OOTB servlet invoked or pointers to find this out will be really helpful.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

aemmarc

Employee

Avatar

aemmarc

Employee

aemmarc
Employee

08-04-2019

To figure this out for yourself all you need to do is upload an asset, and in a parallel tab have <host>:<port>/system/console/requests open. Click the corresponding POST request (POST /content/dam.createasset.html) and you can see which servlets are used.

Answer : It's going to be : servlet com.day.cq.dam.core.impl.servlet.CreateAssetServlet

Answers (6)

Answers (6)

Avatar

Avatar

cquser1

Avatar

cquser1

cquser1

10-04-2019

Hi All,

Thank you for your reply.

Tried uploading multiple times, and tracking requests window closely. But somehow do not see related request getting listed. Guess some issue at my end.

Will go ahead and mark this as complete.

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

09-04-2019

First, you need to find the request that is triggered when fileupload is used from "http://<host>:<port>/system/console/requests"

Once you have the request, use "http://<host>:<port>/system/console/servletresolver " to check which servlet gets invoked.

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

916

Correct Answer

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

916

Correct Answer

1.0K
Jörg_Hoh
Employee

09-04-2019

The request will show up. But as the list only holds the last 20 requests, you might want to retry the upload a few times to make it appear.

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

09-04-2019

Hi,

Can you request path as your component name with parameteres. I believe both dam.createasets.html is used when we upload images in DAM.

There may be the sling post servelt(like curl) is being used to upload image.

1729309_pastedImage_0.png

1729379_pastedImage_1.png

1729380_pastedImage_2.png

Avatar

Avatar

cquser1

Avatar

cquser1

cquser1

09-04-2019

Tried the same. Somehow, could not see that corresponding POST request.

The fileupload component is being used on page properties in custom tab.

1]Is it something like because of that it is not showing up?

2] Will there be any difference at all in the servlet that's invoked ,based on the fileupload present as part of component on page or present in page properties?

Avatar

Avatar

cquser1

Avatar

cquser1

cquser1

08-04-2019

Hi marc,

Thanks a lot for your reply.

Will check on this and revert back.