How to get file buffer from file

Before I answer, any reason you are not using the startUpload() function?