abuiles/ember-attachable

Permit empty values to be added to the FormData.

esbanarango opened this issue · 1 comments

If I have an attribute that I want to set to null, the current way attributes are being added to the FormData doesn't let that null attribute to be added.

if (!Ember.isEmpty(data[key])) // This only should validate if the attachment is empty.

Although there is an existing issue with FormData where null values passed to FormData.append() converted to "null". We should at least permit empty values to be added to the FormData.