Hi All,
I have a question regarding storing excel file in crxde by uploading thru onClick of a new button which I have already added under 'More..' option in DAM.
After clicking on a folder, under 'More..' option, I have added a new button as "Upload File"..
To achieve this, I have added /apps/mytest/clientlibs/dam-gui-admin/js/importFile.js file.
Default functionality in DAM is any selected file to upload will get uploaded to DAM current folder, after clicking on this button...
I am looking for option to:
1. On click of this button 'Upload File' under 'More..' option, user should be able to select the file to upload... (I tried this in javascript, but uploaded file always gets shown in current folder which I do not want).
And
2. The uploaded file should get stored into some node (For example, to store it somewhere under /content/abc/) in crxde And NOT TO BE SHOWN in current folder in DAM to User...
How to override the default behavior in DAM, so that uploaded file do not gets stored in current folder after uploading, and it gets stored in some Node.
Please note that I am not using any jsp here. I am writing workflow for further business logic processing....Something like:
var data = {
":status":"browser",
"_charset_":"utf-8",
model: "/etc/workflow/models/poc/file-import-workflow/jcr:content/model",
payload: assetPaths,
payloadType: "JCR_PATH" };
Can you please help?
Thanks.