Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Anonymous download via direct link
Last Post 01/27/2010 12:44 PM by Peter Donker. 3 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Christian Rommel
New Member
New Member
Posts:25


--
01/24/2010 2:53 AM

I have set up DMX to run for a group of registered users. The users can upload files to the site after they have authenticated in DNN. The page containing DMX is visible only to registered users.

Now I want to share direct download links to unregistered users. They shall have direct download access to single files via the http-link without opening DMX and neither logging in at DNN.

How is it accomplished?

Thanks

Chris

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/25/2010 2:27 PM
Hi Chris,

You'll need to program this. DMX protects data pretty tightly. So if a document is marked as 'for registered users only' it will not release it to an unregistered user. Full stop.

But I did once create an app to create temporary downloads for unauthenticated users. The approach was to create a table where a document was tied to a unique key. That unique key was sent to a user. That user clicks a link containing that key. Now the table lookup returns the document associated with it. Finally the download code is provoked. This code is nearly identical to the regular download code that you can find in the partial src version.

Peter
Christian Rommel
New Member
New Member
Posts:25


--
01/26/2010 1:00 PM

Peter,

thanks for the information. Programming is not a option because I want a product ready to be used 'out of the box'.

According to the anonymous downloads I have set up a quick workaround.

- create a tab visible to anyone and place DMX with an empty view template

- this will render an empty page but with a running instance of DMX in the background

- mark the tab id (in this example id 120)

- go to the tab where you have placed DMX to be used and available only to authenticared users.

- change the view template, named 'ItemTemplate.resources' and modify the download link as follows:

  ...href="[Portal:PortalAlias]Default.aspx?tabid=120&EntryId=[entry:entryid]&Command=Core_Download" style="display:[entry:isfile|block;none]">
     [entry:originalfilename]...

This link will use the dummy DMX on tab 120, which is indeed available for download to any user - also anonymous downloads. If a file required authentication, dnn and dmx will handle it still properly.

Chris


Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/27/2010 12:44 PM
Hi Chris,

Correct. You can do anything as long as you make sure the permissions on the actual documents are correct (i.e. VIEW for All Users in this case).

Peter
You are not authorized to post a reply.