Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-09-26 17:46:24

gb_ksu
Member
Registered: 2007-09-12
Posts: 20

Multiple file upload directories...

Here’s a brief explanation of my goal: I will be using ign_password_protect to protect a specific section of the site I’m working on. In that section, there will be links to certain sensitive documents that the client will upload via Textpattern.

My problem: Only a select few of our client’s clients (not sure how to say that any better) will have access to this section. I would like to make these documents only available to the select few, and I know ign_password_protect doesn’t restrict people from potentially accessing the files (by guessing or typing the exact URL). Please keep in mind that the client also has documents/files that are viewable to the general public, which are simply stored in the “files” directory.

Is there any way to create a sub-directory that Textpattern can pull files from? If not, has anyone had a similar problem, or does anyone have an alternative solution? Thanks in advance! You guys always seem to come through.

Last edited by gb_ksu (2007-09-26 19:41:30)

Offline

#2 2007-09-26 20:12:52

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: Multiple file upload directories...

You can write a plugin to register itself for the “file_download” event. Use this to validate the user against the list of protected files. If it fails, dump out the appropriate http access denied header and exit().

Offline

#3 2007-09-26 20:46:24

gb_ksu
Member
Registered: 2007-09-12
Posts: 20

Re: Multiple file upload directories...

Thanks for the reply Michael. Unfortunately, I’m not really capable of writing my own plugin and am more of a front end designer (another reason I love Textpattern) and also fairly new to Textpattern. You wouldn’t have suggested writing a plugin if there was something already out there like it, but it can’t hurt to ask, right? Do you know of anything similar or a simpler way of achieving the same result? Thanks again.

Offline

#4 2007-09-27 19:48:37

gb_ksu
Member
Registered: 2007-09-12
Posts: 20

Re: Multiple file upload directories...

Does anyone else have a solution, or suggestions for that matter? I appreciate it!

Offline

Board footer

Powered by FluxBB