File upload using CQ.form.UploadSubmitAction in CQ5.5 | Community
Skip to main content
Level 2
October 16, 2015
Solved

File upload using CQ.form.UploadSubmitAction in CQ5.5

  • October 16, 2015
  • 1 reply
  • 1627 views

Hi,

I am new to CQ5 and I am trying to create a custom file upload component. I've succeeded with the implementation using XML HTTP request for HTML5 supported browsers.

But i got stuck while implementing the same for non-HTML5 browsers like IE8. I checked the code in the DAM upload component (/libs/cq/ui/widgets/source/widgets/html5/UploadDialog.js) and found the below piece of code,

var action = new CQ.form.UploadSubmitAction(this.form, config);
this.form.doAction(action);

The function UploadSubmitAction is present in the below path, which they are specifically using for non-HTML5 browsers,

/libs/cq/ui/widgets/source/widgets/form/UploadSubmitAction.js

I am not sure how to use this function in my custom implementation as I am unable to call these functions using my form. Below is the form which i am using in my implementaion,

<form id="form_upload" name="frm" target="upload_target" method="POST" enctype="multipart/form-data">

    <input id="fileUpload_input" type="file"/>

</form>

Any help in implementing this would be appreciated. Thanks in advance.

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

We have a community article that talks about how to upload files to CQ. 

See if this article helps you:

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

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

We have a community article that talks about how to upload files to CQ. 

See if this article helps you:

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