Consistently version_label not label

This commit is contained in:
shamoon
2026-02-10 20:51:54 -08:00
parent ddbf9982a5
commit e0a1688be8
7 changed files with 15 additions and 15 deletions

View File

@@ -191,11 +191,11 @@ export class DocumentService extends AbstractPaperlessService<Document> {
return url
}
uploadVersion(documentId: number, file: File, label?: string) {
uploadVersion(documentId: number, file: File, versionLabel?: string) {
const formData = new FormData()
formData.append('document', file, file.name)
if (label) {
formData.append('label', label)
if (versionLabel) {
formData.append('version_label', versionLabel)
}
return this.http.post<string>(
this.getResourceUrl(documentId, 'update_version'),