[HxInputFileCore] parametrize httpmethod for upload
Closed this issue · 5 comments
romaluca commented
I would like to use HxInputFile to upload a file to S3 with presigned url, but S3 requires uploads to use the PUT method. Is it possible to parameterize the HTTP method in the Upload function for HxInputFileCore.js file?
Currently, the code is:
request.open('POST', uploadEndpointUrl, true);
Thanks!
hakenr commented
@romaluca I can add the UploadHttpMethod
parameter, but I'm not sure if that will be enough to upload the file to S3. If I add this parameter as experimental in a pre-release version of our library, would you be able to help test it with S3 in your project?
romaluca commented
Yes, sure!
romaluca commented
Sorry for the late, it works!
Thanks