knownasilya/ember-plupload

Error callback with IE9

mgrigis opened this issue · 1 comments

When i upload a file with chrome or ff , ie 10 11 everything is fine but not with ie9

my problem : i have an endpoint that send an error (in order to reproduce the bug) like this :

@RequestMapping(method = RequestMethod.POST)
    public ResponseEntity<String> handleFileUpload(@RequestParam("name") String name, @RequestParam("file") MultipartFile file) {
        return new ResponseEntity<>("Error when uploading file", HttpStatus.BAD_REQUEST);

and in js i have this :

file.upload({
      url: '/api/upload',
      headers: {
        Authorization: 'Bearer ' + this.get('session.content.access_token'),
        Accept: 'text/plain'
      }
    }).then((response) => {
      this.sendAction('uploadSuccess', response.body, this.get('model'));
    }, (errors) => {
      this.sendAction('uploadError', errors);
    });

but errors parameter is not as i expected :

in chrome i have this :
ff

And in IE 9 i have this :

ie9

Oh dear. I think this might require setting up sauce to test against IE9.