Fixed media upload

Relevant to #116