Ionic File Transfer

Hii Guys,

Is their any way to add Requestbody to Ionic FIle transfer plugin.
I am adding it in params right now , but the response is giving me error as body .
Missing Fields are Required

 FileTransferError {code: 1, source: "file:///data/user/0/com.maximl.demoapp/cache/1004966297.1625813328898.jpeg", target: "http://192.168.1.6:9001/protected/", http_status: 400, body: "<?xml version="1.0" encoding="UTF-8"?>↵<Error><Cod…34ec-b728-4fb5-a2fb-1beb859876db</HostId></Error>", …}

 body: "<?xml version="1.0" encoding="UTF-8"?>↵<Error><Code>MissingFields</Code><Message>Missing fields in request.</Message><BucketName>protected</BucketName><Resource>/protected/</Resource><RequestId>16900C9365C891EA</RequestId><HostId>f83934ec-b728-4fb5-a2fb-1beb859876db</HostId></Error>"
   code: 1
   exception: "http://192.168.1.6:9001/protected/"
   http_status: 400
   source: "file:///data/user/0/com.maximl.demoapp/cache/1004966297.1625813328898.jpeg"
   target: "http://192.168.1.6:9001/protected/"
   __proto__: Object

Why can’t you use whatever HTTP client your framework provides?

1 Like