Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DNN and remote filesDNN and remote files
Previous
 
Next
New Post
4/3/2007 10:56 AM
 
Hi.

I have a dnn module that need to get files from a remote folder. DNN is installed in a webserver. Folder is in a remote server. Both are in the same local network but I can'y access the files from the website when I'm outside the network. Can someone help?

Portugal
 
New Post
4/3/2007 4:06 PM
 

This happens because the remote server is not exposed to the internet.  You will be able to access these files when you are on the local network because the requesting user has access locally.  To get around this, one option would be to create a virtual directory on your webserver an point it to the directory on the remote server.  Then you can request the files on the remote server using a normal http request.

Webserver
http://www.mywebserver.com

Remote Server
need access to remotecontent folder

Create Virtual directory on Webserver and point to Remote Server /remotecontent

You then access the files using
http://www.mywebserver.com/remotecontent/filename.ext

 
New Post
4/4/2007 5:07 AM
 
Thanks professorcw1.

Now I have another problem. When i registered user log in to my dnn website, I want to let him access only certain files of the remote folder. Is there a way of doing that?

Inside the remote folder are several other folders, each one with the name of the user they belong.

Thanks one more time!

Portugal
 
New Post
4/4/2007 3:58 PM
 

That depends on your authentication method.  If you're using Windows Authentication, you can do this with regular file/folder permission.  If you are using Forms Authentication, you will have more difficulty.  With Forms Auth, your users are really accessing as anonymous (or IUSR_ServerName, or however else you have it setup).  Regardless, your remote server won't know who's who.

To accomplish what you want, you have a few options.  The two simpliest (imho) would be to

  1. Purchase a robust file manager like Speerio File Manager Pro and configure it do what you need at the folder level
  2. Write some code that compares the folder name to the username and allow/deny as appropriate

I'm sure there are other, more elegant ways to do this, but I tend to go for what I can get working in an hour or so.  Either of these two options fit that requirement.

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DNN and remote filesDNN and remote files


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