mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
attachment revision upload
This commit is contained in:
@@ -104,7 +104,7 @@ export default class FilePropertiesWidget extends NoteContextAwareWidget {
|
||||
formData.append('upload', fileToUpload);
|
||||
|
||||
const result = await $.ajax({
|
||||
url: `${baseApiUrl}notes/${this.noteId}/file`,
|
||||
url: `${window.glob.baseApiUrl}notes/${this.noteId}/file`,
|
||||
headers: await server.getHeaders(),
|
||||
data: formData,
|
||||
type: 'PUT',
|
||||
|
||||
Reference in New Issue
Block a user