Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Image upload api #32

Open
RamType0 opened this issue May 22, 2024 · 1 comment
Open

Custom Image upload api #32

RamType0 opened this issue May 22, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@RamType0
Copy link

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;
}

Then this will be inserted to markdown

![](/Media/{media.Id})
@erossini erossini self-assigned this Jun 2, 2024
@erossini erossini added the enhancement New feature or request label Jun 2, 2024
@erossini
Copy link
Owner

erossini commented Jun 2, 2024

I'll add it to the list of the features. Thank you for the message.
Enrico

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants