Unplanned
Last Updated: 13 Dec 2023 21:41 by Greg
Timothy J
Created on: 01 May 2021 10:04
Category: Upload
Type: Feature Request
5
Allow different verb than POST (such as PUT)

I am trying to upload files to an URL that is not in my control and it requires the PUT HTTP method. The Telerik Blazor Upload always uses a POST.

I imagine API like this would be nice:

 

        <TelerikUpload SaveUrl="@SaveUrl" SaveMethod="PUT">

        </TelerikUpload>

 

---

ADMIN EDIT

In the meantime, there are two possible solutions:

  • Upload the file to your own server that can accept POST and use that server to upload to the third party. This can help hide URLs and security from your end users as well.
  • Implement a FileSelect type of component to get the file in code and upload it with your own HTTP request from C#.

---

1 comment
Greg
Posted on: 13 Dec 2023 21:41

Allowing PUT could make uploads directly to Azure Blob Storage possible, when you do this now you get a error back from the Blob REST API that says the POST verb is not allowed. 

My understanding is that the control can to upload to Amazon cloud storage because it allows POST uploads, I see Telerik as the leader in Microsoft compatibility but this control does not support direct uploads to Azure like it does with Amazon?