Current image upload API has very limited functions for customization.
It always requires fixed request body format and fixed response format.
And also, required response format is not documented at all.
I want much simple, and customizable API such as
async Task<string> OnImageAttached(byte[] fileContent, string contentType)
{
var media = await MyApi.UploadImageAsync(contentType, fileContent);
var relativeUrl = $"/Media/{media.Id}";
return relativeUrl;
}
Current image upload API has very limited functions for customization. It always requires fixed request body format and fixed response format. And also, required response format is not documented at all. I want much simple, and customizable API such as
Then this will be inserted to markdown