Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

How to get the file name if I upload the PDF file using "xtype:fileuploadfield"?

Avatar

Level 2

How to get the file name if I upload the PDF file using "xtype:fileuploadfield", I am not able to get the PDF filename, it was stored as a binary data,. Is there any way to get the uploaded pdf filename?

1 Accepted Solution

Avatar

Correct answer by
Level 10

If you upload the file to a custom sling servet in AEM, you can use Java app logic to get the file name. For information about using an AEM Sling Servet to handle the uploaded file - including how to get the file name -- see:

http://helpx.adobe.com/experience-manager/using/post_files.html

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

If you upload the file to a custom sling servet in AEM, you can use Java app logic to get the file name. For information about using an AEM Sling Servet to handle the uploaded file - including how to get the file name -- see:

http://helpx.adobe.com/experience-manager/using/post_files.html