Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-11-10 19:34:28 +01:00
parent 82ff1db45f
commit de5d9bcf05
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0

View File

@ -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)