Upload image for use in blocknote editor (#3044)
* - upload image to use in blocknote editor - fix local-storage not in gitignore * fix lint * fix runtime config add tests for body parsing notes and tasks * lint
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
import { REACT_APP_SERVER_BASE_URL } from '~/config';
|
||||
|
||||
export const downloadFile = (fullPath: string, fileName: string) => {
|
||||
fetch(process.env.REACT_APP_SERVER_BASE_URL + '/files/' + fullPath)
|
||||
fetch(REACT_APP_SERVER_BASE_URL + '/files/' + fullPath)
|
||||
.then((resp) =>
|
||||
resp.status === 200
|
||||
? resp.blob()
|
||||
|
||||
Reference in New Issue
Block a user