added support for media/upload API