add some very crude file uploading

This commit is contained in:
Jonas Winkler
2020-10-27 17:35:10 +01:00
parent 9c996e69bb
commit 6a73ee96a5
6 changed files with 58 additions and 39 deletions

View File

@@ -26,4 +26,8 @@ export class DocumentService extends AbstractPaperlessService<PaperlessDocument>
return this.getResourceUrl(id, 'download') + `?auth_token=${this.auth.getToken()}`
}
uploadDocument(formData) {
return this.http.post(this.getResourceUrl(null, 'post_document'), formData)
}
}