Is it possible, when you upload a document and put it in a library, to set automatically inherited rights from the library to this document ? Because, for the moment, when I upload a document (during page edit) it set only the administrator and the uploader in the authorizations. How can I resolve this problem ? Thank you with advance and sorry for my poor english.
you need to create an event receiver in the item adding event, then in that event you can set permissions your self with the SPFolder and SPFile classes.
Here is an example of more or less how can it be done http://blogs.msdn.com/b/robgruen/archive/2007/11/15/how-to-programmatically-set-permissions-on-files-folders-in-a-sharepoint-document-library.aspx
how to create an event receiver http://msdn.microsoft.com/en-us/library/ee231563.aspx