updated media upload module

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>