Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error callback with IE9 #40

Open
mgrigis opened this issue Aug 31, 2015 · 1 comment
Open

Error callback with IE9 #40

mgrigis opened this issue Aug 31, 2015 · 1 comment

Comments

@mgrigis
Copy link

mgrigis commented Aug 31, 2015

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

@tim-evans
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants