Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUsing JS client for Downloading File from Secure folderUsing JS client for Downloading File from Secure folder
Previous
 
Next
New Post
12/19/2016 5:03 AM
 

Hello, 

What is a good way of programmatic downloading a file from secure folders from Javascript(Cordova) client. It will need work from version DNN 7.4.x

The functionality will need do:
1. Authenticate to DNN from JavaScript(Cordova client)
2. Then do ajax file download in JS, from files saved in DNN secure file folder on the web site

Suggestions and any link to samples are welcome.

Ps Can the current URL format in some way be a friendly URL?
(http://www.yyy.com/admin/filemanager....)

 Regards

 
New Post
12/19/2016 5:48 AM
 
PS. We found some suggestion that was running into trouble, using the WebAPI Serivces Framework for authentication, but we assume this may be a viable road ahead for authentication ?
https://forum.ionicframework.com/t/ht...
 
New Post
12/19/2016 6:34 AM
 
Hi Svein,
the best method for connecting external services to DNN is with JWT authentication: https://www.dnnsoftware.com/docs/deve... . But this is only in DNN 8...

Best wishes from Germany
Torsten Weggen

dotnetnuke.blog. DNN Usergroup German Speaking Area Eurepean Network of DotNetNuke Professionals
 
New Post
12/19/2016 7:25 AM
 
Hi Torsten,

Thank you very much for good feed back. ( We do hope to directly upgrade to DNN 9.x in some time later, leapfrogging the DNN 8.0)

1. What would the recommended authorization alternative be, instead of using the JWT authentication in 7.4.x ?

2. Is it any recommended API methods for downloading-/retrieving secure files programmatically ?
http://www.yyy.com/admin/filemanager....


Best wishes

Svein B.
 
New Post
12/19/2016 7:33 AM
 
Hi Svein,

1.) I give up on this doing it in DNN7.x. So anybody else may chime in ?
2.) Write your own module and provide the WebApi methods you need (if point one is solved)

Best wishes from Germany
Torsten Weggen

dotnetnuke.blog. DNN Usergroup German Speaking Area Eurepean Network of DotNetNuke Professionals
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUsing JS client for Downloading File from Secure folderUsing JS client for Downloading File from Secure folder


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out