Refactor video model to fix upload file.