I have changed the status of this item to Duplicated, as we consider the request as media picker control.
If you have any additional feedback and comments, let us know.
Regards,
Didi
Progress Telerik
ADMIN
Didi
Posted on:19 Jun 2023 13:03
Hello,
I have changed the status to Need More Info. Could you please specify what is the exact requirement for this item. Do you need a control/API, for this. I am asking as this feature request is a bit incomplete. There is no clear explanation of what is expected of this feature.
Thank you for posting a Feature Request, however this is a bit incomplete as you've not explained what you're looking for. Where do you expect such an image to get uploaded to?
As far as uploading goes, this is very specific to the type of place you want to upload to. There are literally thousands of different APIs that all have their own way of authenticating the HTTP Post message.
In the implest form, you can use HttpClient to post that image to your API
byte[] myImageBytes = FromCameraOrMediaLibrary();
var myServerUrl = "https://myserver.com/api/pictureUpload";
var httpContent = new ByteArrayContent(myImageBytes, 0, myImageBytes.Length);
using (var client = new HttpClient())
using (var response = awaitclient.PostAsync(myServerUrl, httpContent))
{
if (response.IsSuccessStatusCode)
{
// yay uploaded!
}
}
Summary
Ultimately, we try to go to great lengths to keep the UI components as agnostic as possible. This prevents you from getting stuck using specific API endpoints or data layer systems.
If we didn't do this, then you would be limited to a very small sliver of the possible options. This allows anyone to use the UI components with any "APIs or data system they want to.
Side Note: Additionally problematic, is there are authentication concerns as well. even if we chose to support one or two authentication systems, it would eliminate all the other options. You're much better off using HttpClient and the flexibility that comes with it.
Regards,
Lance | Manager Technical Support
Progress Telerik