forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBd962efeBurak Boduroğlu4 months ago146 commits

postNoteFile.ts8 lines, 314 bytesHistoryRawDownload
1import { formClient } from "./client";
2import type { NoteFile } from "./types";
3
4export function postNoteFile(noteId: string, file: File, signal?: AbortSignal): Promise<NoteFile> {
5 const body = new FormData();
6 body.append("file", file);
7 return formClient<NoteFile>(`/notes/${noteId}/files`, body, signal);
8}