Improve resource upload view, model and tests.