mardi 4 avril 2017

Using Ember-ajax to stream a file

I want to use my GET rest call to download a file using ember-ajax.

this.get('ajax').request(url)

i am setting the contentType as 'application/force-download. but i'm getting an error saying that Unexpected token in JSON at position 0. I want it to force downloading the file. I'm confused what i need to do here




Aucun commentaire:

Enregistrer un commentaire