FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » how to allow only certain users to download uploaded file
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
how to allow only certain users to download uploaded file [message #175938] Wed, 09 November 2011 18:05 Go to next message
swapnil is currently offline  swapnil
Messages: 1
Registered: November 2011
Karma: 0
Junior Member
I have a page in which i upload a circular & also select users who can
view this page using multiple select dropdown box.
Now how to display the uploaded file to selected users when they login
and not to other users.
Can anybody help.
Thanks in advance.
Re: how to allow only certain users to download uploaded file [message #175948 is a reply to message #175938] Thu, 10 November 2011 05:34 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 11/9/2011 1:05 PM, swapnil wrote:
> I have a page in which i upload a circular& also select users who can
> view this page using multiple select dropdown box.
> Now how to display the uploaded file to selected users when they login
> and not to other users.
> Can anybody help.
> Thanks in advance.

Two ways. You can use .htaccess to limit file access if you use Apache
authentication. Otherwise you need to place the files outside of the
webroot directory and use PHP to validate the user and allow the file to
be downloaded, if authorized.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: he discount UGG boots are best known for its "Classic" sheepskin boots.
Next Topic: execution just stops when it gets to DB::connect
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 21:00:47 GMT 2024

Total time taken to generate the page: 0.02365 seconds