Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

How can I control access to attachments?

Hello everybody,

My problem consists of avoid people not authenticated to access attachments previously sent. We should be granted to access just if we are logged.
The application let us to upload files but we do not want everybody to access the files uploaded. We want the user to be authenticated before because anyone could access through url if we do not ensure that and we would like to let to access just the authenticated users we decide through links if possible, as email account controls your accounts and let you see only data sent from/to you.

Client Server
-- --

File--->>>----File attached

Client Server
-- --

Not authenticated
url File attached-->>>-- Deny
Authenticated-->>>--View File through application

[Improved application]
Client Server
-- --
Not authenticated
url File attached-->>>-- Deny

Authenticated
and is granted to
access --->>>--View File through application (it could be a link to attached file we could click) or an image we can see in app

Thanks in advance. :confused:
[1330 byte] By [campanilla] at [2007-11-11 9:53:49]
# 1 Re: How can I control access to attachments?
I think u r looking for a membership/roles explanation.
There is a good video tutorial that can be found here

http://download.microsoft.com/download/3/6/0/3604c3d2-0db9-4726-910d-b3b8f93a86e4/hilo_membership-roles_final.wmv

hope this helps
Angel106 at 2007-11-11 23:12:16 >