Code for upload file and embed video