Hi, I am start using fckeditor(java version), and it works fine except upload function.
In our application, we expect that everybody can only operate the directories and images which
created by themselves. What I know just now is that there is a interface(net.fckeditor.requestcycle.UserAction),
which can be used for authorization.
We don't want user to view all the directories and images.( It means both operation and data query priviledge should be
under control.)
So is it applicable to implement this feature using the UserAction interface?
Please help me.
Thanks !
In our application, we expect that everybody can only operate the directories and images which
created by themselves. What I know just now is that there is a interface(net.fckeditor.requestcycle.UserAction),
which can be used for authorization.
We don't want user to view all the directories and images.( It means both operation and data query priviledge should be
under control.)
So is it applicable to implement this feature using the UserAction interface?
Please help me.
Thanks !
Re: How to control the authorization when upload image
Re: How to control the authorization when upload image
It 's really usefull to control which directory use can access using the interface UserAction.
But is it possible that we just list the directories which are created by themselves, instead of
listing all the directories on the server?
If the directory is not mine, how should you listed it to me and then don't let me see it.
It 's really very unnesscessary. It should be more friendly to the users when upload files.
Please give me more suggestions.
Thanks in advance.
Re: How to control the authorization when upload image
Well, there are two options to achieve this. You first have to realize, how can you safely determine who has created a specific directory? Do you 'chown' on every directory and file? Java does not allow to determine the object owner directly (except upcoming NIO 2 in Java 7 maybe). I wouldn't go this way.
The preferred option would be to provide a userfiles folder for every user. To provide this, you have to implement UserPathBuilder interface and serve paths as desired.
Be aware that this is virtually a superficial restriction/listing. No one hinders other users to access someone other's files directly through browser's address bar.
Mike
Re: How to control the authorization when upload image
Re: How to control the authorization when upload image
Re: How to control the authorization when upload image
Thanks
Re: How to control the authorization when upload image
You always have an option by coding the solution yourself. No other connection offers that of out the box besides the Java one.
Re: How to control the authorization when upload image