Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Scaffolding: How to add/configure a document upload control?

Avatar

Level 1

Hey all.

I'm working on a scaffolding form that would allow a content user to create a Request for Proposal (RFP) document that web users can view.  One of the fields required for the scaffolding form is a document upload control so that the Content Author can upload a file (e.g.) a PDF for the web user to download that contains some detailed information.

In my work in trying to figure this out, I've determined that there is a field with an xtype set to "html5fileuploadfield" that will make the field appear in the form...but nothing happens with it other than showing the explorer dialog box after hitting the "Browse..." button.

What other configuration would need to be done (in terms of additional properties and such) in order to get this thing working properly?

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10

You can write a custom upload control - see this article: 

https://helpx.adobe.com/experience-manager/using/uploading-files-aem1.html

You can write this JS logic in a custom xtype so its available on a component dialog. 

The benefit of this is you can use app logic (using the AssetManager API) on the server to process the file and place it exactly where you want it in the JCR. 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

You can write a custom upload control - see this article: 

https://helpx.adobe.com/experience-manager/using/uploading-files-aem1.html

You can write this JS logic in a custom xtype so its available on a component dialog. 

The benefit of this is you can use app logic (using the AssetManager API) on the server to process the file and place it exactly where you want it in the JCR.