Implemented meta-upload.

Mostly copy-paste from meta-validate.
Merge branch 'meta-upload'