Commit 4ec7147
feat: Add support for nodeId validation in ValidateHelper
Support validating files by Nextcloud nodeId in addition to
LibreSign fileId. This enables creating signature requests
for files that haven't been registered in LibreSign yet.
The validateFile method now accepts 'nodeId' parameter and
validates it similarly to 'fileId', ensuring the file exists
and has the correct MIME type.
Signed-off-by: Vitor Mattos <[email protected]>1 parent 7c29c0f commit 4ec7147
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
128 | 139 | | |
129 | 140 | | |
130 | 141 | | |
| |||
0 commit comments