Extending Frontend User Security to Uploaded Files

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
User avatar
jtcreate
Forum Members
Forum Members
Posts: 168
Joined: Wed Mar 21, 2007 11:01 am
Location: Grand Rapids, MI

Re: Extending Frontend User Security to Uploaded Files

Post by jtcreate »

Ok. I am starting to understand what I'm missing. Just to recap... here is my current setup (1-4 are fully functional). If you can guide me through the proper call to uploads, I'd appreciate it.

1. User logs in.
2. They are auto directed to a page with the same name as their username.
3. On that page, they can download 1 file that is unique to them (it's a PDF)
4. Right now, that is a manual call to a file in the uploads directory /uploads/files/uniquefile01.pdf

To make this work properly, it sounds like I need to implement the UPLOADS module on a page that I can navigate to to upload the files... vs. uploading through the admin panel or via ftp.

#1. Is that correct?
#2. If so, how do I only show that 1 unique file on each page?

Again. Thank you for your assistance. I know this will help many people... not just myself.
Mmmmm... Tasty.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Extending Frontend User Security to Uploaded Files

Post by jmcgin51 »

jtcreate wrote: If you can guide me through the proper call to uploads, I'd appreciate it.
see below
jtcreate wrote: To make this work properly, it sounds like I need to implement the UPLOADS module on a page that I can navigate to to upload the files... vs. uploading through the admin panel or via ftp.

#1. Is that correct?
Not sure I follow you here.  Uploading through the Uploads admin interface should work just fine.  You can also use FTP, but you'll have to add the file summary, etc, in the Uploads mod anyway.  Might as well do it all through Uploads.
jtcreate wrote: #2. If so, how do I only show that 1 unique file on each page?
{cms_module module="Uploads" category="somecategory" upload_id="id_of_the_uploaded_file"}
User avatar
jtcreate
Forum Members
Forum Members
Posts: 168
Joined: Wed Mar 21, 2007 11:01 am
Location: Grand Rapids, MI

Re: Extending Frontend User Security to Uploaded Files

Post by jtcreate »

Thank you. All the files are in the uploads module. Each has an id.

I added this call from one of the pages:

{cms_module module="Uploads" category="volunteers" mode="link" upload_id="33"} (PDF)


And, it's blank. So close here. I tried a few different modes (as mentioned in the module help), but none worked.

This is so close to working...

- the category is volunteers (Cat #3)
- their are multiple files in there - each has its own ID in the left column

If I change the category name in the above line {cms module... etc.} is does say "Category Not Found". So, I'm assuming it's connecting to the Uploads module. Am I missing something in the line above?

Again, thanks for your help.
Mmmmm... Tasty.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Extending Frontend User Security to Uploaded Files

Post by Dr.CSS »

If you just FTP the files to the site there is a good chance this will never work iirc all protected files need to be uploaded thru the admin of the Uploads Module...
User avatar
jtcreate
Forum Members
Forum Members
Posts: 168
Joined: Wed Mar 21, 2007 11:01 am
Location: Grand Rapids, MI

Re: Extending Frontend User Security to Uploaded Files

Post by jtcreate »

mark wrote: If you just FTP the files to the site there is a good chance this will never work iirc all protected files need to be uploaded thru the admin of the Uploads Module...
Good point. As a test, I created a fresh category and uploaded one file into it through the admin panel and then did the call from the page... still blank.

It's connecting, but not showing the link or other content. If I put in incorrect parameters or a wrong category name, it returns an error. Current code line is:

{cms_module module="Uploads" category="tester" mode="link" upload_id="101"}(PDF)


Everything else works great! This is the last piece of the puzzle. Thanks to all.
Mmmmm... Tasty.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Extending Frontend User Security to Uploaded Files

Post by jmcgin51 »

hmmm, that exact module call works for me (of course changing the category name, etc for my install)

{cms_module module="Uploads" category="downloads" upload_id="77" mode="link"}
User avatar
jtcreate
Forum Members
Forum Members
Posts: 168
Joined: Wed Mar 21, 2007 11:01 am
Location: Grand Rapids, MI

Re: Extending Frontend User Security to Uploaded Files

Post by jtcreate »

I concur with your "hmmmm"... does it matter what order you set it up? eg. I had mode then upload_id? Otherwise, I'm truly stumped now. Everything else is working great.
Mmmmm... Tasty.
Post Reply

Return to “Modules/Add-Ons”