Jump to content

how to allow only certain users to download uploaded file


swapnilyeole

Recommended Posts

 

One way:

 

 

1) Each new 'circular' has an ID and ref. and server location if is a file in a mysql table

 

2) Create another table (basic example)

id      |  circularID

7134  |  873

5183  |  873

7132  |  873

7239  |  873

 

3) Add a new plugin to any page required which will check if the userID of the user accessing said page is in the table created in step 2..... then allow them to view or download the file.

(also place the files out of the public www so no-one can publicly get to it, meaning php will have to pull the file, process and print to user)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.