From the JSDoc, it isn't clear that this is the function that's responsible for actually uploading the new file.