I'm developing a test plateforme and i want to test a file uploading service. Is there any way to read a binary file and append it to the FormData
var file = someModule.readFile('test-data/roof-top.tif');
var formData = new FormData();
formData.append('file',file, 'uploadedFile');
or maybe i should build a static file server and do some Ajax calls to retrieve my binary files ?
Aucun commentaire:
Enregistrer un commentaire