mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
continuing in API review
This commit is contained in:
@@ -11,7 +11,7 @@ $("#file-upload").change(async function() {
|
||||
formData.append('upload', this.files[0]);
|
||||
|
||||
const resp = await $.ajax({
|
||||
url: baseApiUrl + 'files/upload/' + noteDetailService.getCurrentNoteId(),
|
||||
url: baseApiUrl + 'notes/' + noteDetailService.getCurrentNoteId() + '/upload',
|
||||
headers: server.getHeaders(),
|
||||
data: formData,
|
||||
type: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user