havit/Havit.Blazor

[HxInputFileCore] parametrize httpmethod for upload

Closed this issue · 5 comments

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!

@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?

Yes, sure!

Released in 4.6.15-pre1.
@romaluca Please give it a try...

Sorry for the late, it works!
Thanks

@romaluca Thanks for confirmation!