fix upload on Firefox

* lodash isEmpty on a File object return false on FF
* test was crashing on FF due to the need of a File|Blob in the FormData.append method