Uploader: Handle the case user has no permission.

* Hide upload form if the user has no permission.
* Add status code and reason phrase to upload failed message.
code: minor fix for some messages.