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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

146030 Jul 17,2019 11:47 AM UTC Jul 19,2019 11:51 AM UTC Angular - EJ 2 3
loading
Tags: FileManager
Umamaheswaran Thangavel
Asked On July 17, 2019 11:52 AM UTC

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

Christopher Issac Sunder K [Syncfusion]
Replied On 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 


Umamaheswaran Thangavel
Replied On 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!

Christopher Issac Sunder K [Syncfusion]
Replied On July 19, 2019 11:51 AM UTC

Hi Uma, 

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

Thanks,
Christo 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon