fix issue 778

Embed the new permission widget in the upload page and link it to the uploader js