Scaffolding: How to add/configure a document upload control? | Community
Skip to main content
ken_king1
New Participant
October 16, 2015
Solved

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

  • October 16, 2015
  • 2 replies
  • 630 views

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.

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 smacdonald2008

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. 

2 replies

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015

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. 

smacdonald2008
New Participant
October 16, 2015