master: add rev option to media upload