title: How to upload files logged in as a different user to the app creator's drive such that only the most recently uploaded file is kept in the team drive?
body: <p>As a follow up question regarding the solution for this question: <a href="https://stackoverflow.com/a/50494893/9878092">https://stackoverflow.com/a/50494893/9878092</a></p>
  
  <p>I am able to upload a file to the team drive, but how can I make it such that if the file has the same name, it will override a pre-existing file in the team drive? For example, if I first upload a file named "File A" and then upload another file named "File A" both to the team drive, how do I ensure that only the most recently uploaded File A is located in the team drive? Thank you.</p>