forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB078b459Burak Boduroğlu2 months ago671 commits

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