mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-26 19:44:57 +02:00
@@ -35,7 +35,7 @@ export async function uploadFile(space: Ref<Space>, file: File, attachedTo: Ref<
|
||||
body: data
|
||||
})
|
||||
if (resp.status !== 200) {
|
||||
throw new Error('Can\t upload file.')
|
||||
throw new Error('Can\'t upload file.')
|
||||
}
|
||||
const uuid = await resp.text()
|
||||
console.log(uuid)
|
||||
|
||||
Reference in New Issue
Block a user