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

Bring2mind Forums

Using DMX module in another asp.net website
Last Post 02/07/2010 10:40 AM by Peter Donker. 1 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
munna
New Member
New Member
Posts:1


--
02/05/2010 4:10 PM

We have a website (built using ASP.Net) and a DNN portal and both are on the same server. Therefore authentication is not an issue across the applications.

 
We have a requirement to upload and download the documents from the website (built using ASP.Net). We will be maintaining locking features from within DNN portal using your DMX module.
 
Based on this, We have the following basic needs:
1.    Uploading and downloading document from the website (built using ASP.Net).
2.    When a document will be uploaded from the website, a new folder should be created with the document name under default folder settings specified in DMX settings. The document is then uploaded to the newly created folder.
3.    When a document is uploaded, the versioning should automatically get increased if the document with the same name already exists in my DNN Portal.
 
There is no other portal apart from my website that will make use of the DMX module. I will control the locking feature internally from DNN portal.
 
Further, we checked the uploading mechanism by the DMX and found that the module renames the original document and changes its extension type to “.resources”. I am not sure if the document uploaded from the website using the DMX will be later on available in the website. Can you please explain me how DMX uploads document and how i can retrieve the uploaded document URL in support site.
 
Please confirm if i use DMX to upload the document from my websit, will i be able to retrieve the URL to make it available to the users with the original document name and that versioning is maintained properly.
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
02/07/2010 10:40 AM
Hi Munna,

I can’t really respond to the questions regarding the use of DMX outside DNN (i.e. talking to it directly from another asp.net application). The reason is that so many methods descend into DNN and there are many pitfalls when not in DNN scope. DNN builds objects like UserInfo and PortalSettings when it gets a request. If a module uses these (and DMX does) then you’ll most likely see errors unless you prime these objects yourself. It would require quite a bit of work to figure out exactly what needs to be done to get this to work even if the authentication is integrated.

About the DMX document management itself: it hashes the filename and stores it on disk. Alternatively it can store to SQL or S3. The module makes the documents available through the web interface granted sufficient rights. The actual download passes through asp.net code. There is never any direct access to the files by the user. But the user talks to a url as you rightly conclude. You can see the urls when you right click a document and “select show direct link”.

Peter
You are not authorized to post a reply.