Here is a demo page for testing...
Viewing permissions
Editing permissions
Uploading Files