Skip to content
Snippets Groups Projects
Commit ed80d101 authored by Leah Tacke genannt Unterberg's avatar Leah Tacke genannt Unterberg
Browse files

fixed `upload_db` api call

parent 5e208ea1
No related branches found
No related tags found
No related merge requests found
Pipeline #501849 passed
......@@ -62,7 +62,11 @@ async function stopSession() {
}
async function uploadDB(sqliteFile) {
return await SessionService.uploadDb({body: {sqlite: sqliteFile}}).catch(errorHandler('Error uploading file'))
return await SessionService.uploadDb({
headers: {
'Content-Type': 'multipart/form-data',
}, body: {sqlite: sqliteFile}
}).catch(errorHandler('Error uploading file'))
/*
const formData = new FormData();
formData.append('sqlite', sqliteFile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment