Fix bug around UPDATE vs INSERT in upload.js

'this.fileId' is not defined, the ID is passed in options.fileId, which if specified, means the file should be replaced. As it is, UPDATES cannot occur because this.fileId is always null (falsey) and so POST httpmethod will always be invoked, resulting in INSERT.