vendredi 21 juillet 2017

Ember collectionAction not working when sending attachment as params

I have to send a attachment as params in ember collectionAction

> let attachment = this.get('store').createRecord('attachment');
> attachment.set('resource', file);
>this.get('store').createRecord('applicant').parseResume(attachment);

where parseResume is the collectionAction for applicant

This throws "Maximum call stack size exceeded" in browser console.

I can't save attachment first and send parse resume second, as it involves two network request. I want to achieve it in single request.




Aucun commentaire:

Enregistrer un commentaire