Question about concurrently handling write and readonly access to file
<p>In a web application, is there a widely accepted way for handling locked files?</p>

<p>For example, a user has write access to a file so what would be the best way to let all other users access the file but with read only rights only.</p>

<p>Furthermore, if that user closes the file and all handles/resources are then disposed of, how can I decide who could have full write access to the file next?</p>

<p>This is assuming 1 user with full write access, and 10 users then with read-only access.</p>

<p>Also assuming a file link on a web application.</p>

<p>Thanks</p>
