I need to send a file uploaded by user in the payload of my post request. I have converted file into binary form. What will be the type for this file. Currently I’m using string.
export interface PostRequestPayload {
title: string;
description: string;
content: string;
file?: string ; //what will be the type for this
}