We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to pass file data[] while downloading a file using downloadUrl api on ej2 syncfusion Filemanager?

Hello,

I can see in the online sample on the link below, that data[] is being sent along with the downloadInput json


In the demo url above, when i right click and download a file, in the console i can see for the download api call,  the posted FormData with downloadInput has action, path, names & data [].  But in my local post request this data[] is not being send along with the FormData

downloadInput:
{"action":"download","path":"/Pictures/Food/","names":["Doughnut.png"],"data":[{"path":null,"action":null,"newName":null,"names":null,"name":"Doughnut.png","size":99344,"previousName":null,"dateModified":"2019-07-16T11:47:32+00:00","dateCreated":"2019-07-16T11:52:20.2933538+00:00","hasChild":false,"isFile":true,"type":".png","id":null,"filterPath":"\\Pictures\\Food\\","targetPath":null,"renameFiles":null,"uploadFiles":null,"caseSensitive":false,"searchString":null,"showHiddenItems":false,"_fm_iconClass":"e-fe-image","_fm_id":null,"_fm_pId":null,"_fm_selected":false,"_fm_icon":null,"data":null,"targetData":null,"permission":null,"_fm_created":"2019-07-16T11:52:20.293Z","_fm_modified":"2019-07-16T11:47:32.000Z"}]}


In my FormData, downloadInput has action, path, names, like below

downloadInput:
{"action":"Download","path":"https://f002.backblazeb2.com/file/testobuck/","itemNames":["Obama and Uma.jpg"]}


How to add data[] to the downloadInput json while calling the download api or while downloading a file.

can you please advice.

thanks
-Uma

3 Replies

CI Christopher Issac Sunder K Syncfusion Team July 18, 2019 01:35 PM UTC

Hi Uma, 

Greetings from Syncfusion support. 

In the preview release of File Manager only the action, path and name were passed on downloading a file. Currently in our 2019 Vol 2 Beta release, we have updated this download functionality to pass the data along with the other properties. 

So please update your Syncfusion related packages to this beta version(v17.2.28-beta) or to the latest 2019 Vol 2 Main release(v17.2.34) to include the updated changes for download functionality. 

Other than this we have included new functionalities in the File Manager like, 
·         Copying and moving the files/folders within the file system 
·         Moving files/folders using drag and drop 
·         Define access permissions for files and folders so that only authorized users are provided access to it. 
·         Restrict specific file types from being uploaded in the File Manager 
·         Manage different storage services like - Microsoft Azure cloud service, Google drive cloud service, Node.js framework and SQL server database in the File Manager. 

Please check it and let us know if you have any concerns. 

Thanks, 
Christo 



UT Umamaheswaran Thangavel replied to Christopher Issac Sunder K July 18, 2019 06:56 PM UTC

Hi Uma, 

Greetings from Syncfusion support. 

In the preview release of File Manager only the action, path and name were passed on downloading a file. Currently in our 2019 Vol 2 Beta release, we have updated this download functionality to pass the data along with the other properties. 

So please update your Syncfusion related packages to this beta version(v17.2.28-beta) or to the latest 2019 Vol 2 Main release(v17.2.34) to include the updated changes for download functionality. 

Other than this we have included new functionalities in the File Manager like, 
·         Copying and moving the files/folders within the file system 
·         Moving files/folders using drag and drop 
·         Define access permissions for files and folders so that only authorized users are provided access to it. 
·         Restrict specific file types from being uploaded in the File Manager 
·         Manage different storage services like - Microsoft Azure cloud service, Google drive cloud service, Node.js framework and SQL server database in the File Manager. 

Please check it and let us know if you have any concerns. 

Thanks, 
Christo 


After updating the package to latest version its working!

Great!

thank you Christo!


CI Christopher Issac Sunder K Syncfusion Team July 19, 2019 11:51 AM UTC

Hi Uma, 

Most welcome!! Please get back to us if you need any other assistance. 

Thanks,
Christo 


Loader.
Up arrow icon