v2 api integrated for media file upload