How to upload to s3 with bs-axios


I am trying to upload file to s3 with pre-signed URL using bs-axios, the file is wrapped in a FormData object, and, and I’ve got a 403 error for the upload, the way I got this around is to introduce another method for uploading file without using FormData, I am wondering if I could do the same thing with bs-axios without introducing this new method?

[@bs.module “axios”]
external putFilec:
(string, Webapi.File.t, Axios_types.config) =>
Js.Promise.t(Axios_types.response('b, 'c)) =