We want to support native file uploads without the use of form-data. Therefore it was necessary to supply more information to the "uploadFiles" command and create a new way to upload those raw files.
ToDo
[x] Android
[x] iOS
[x] Tests
[ ] Documentation
Details
There is a new option 'transmitFileAs' which currently only supports "BINARY", NULL, undefined or any string except "binary". The default behavior is "FORMDATA". There is no need to change existing code.
If you want to use this new feature, you can use http.sendRequest({ method: 'upload', fileName: '<yourfile>', transmitFileAs: 'BINARY', url: '<your url>' }).
Motivation
We want to support native file uploads without the use of form-data. Therefore it was necessary to supply more information to the "uploadFiles" command and create a new way to upload those raw files.
ToDo
Details
There is a new option 'transmitFileAs' which currently only supports
"BINARY"
,NULL
,undefined
orany string except "binary"
. The default behavior is "FORMDATA". There is no need to change existing code.If you want to use this new feature, you can use
http.sendRequest({ method: 'upload', fileName: '<yourfile>', transmitFileAs: 'BINARY', url: '<your url>' })
.