You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Attach resource from mobile
This commit is contained in:
@@ -163,7 +163,9 @@ class OneDriveApi {
|
||||
|
||||
let response = null;
|
||||
try {
|
||||
if (options.target == 'string') {
|
||||
if (options.source == 'file' && (method == 'POST' || method == 'PUT')) {
|
||||
response = await shim.uploadBlob(url, options);
|
||||
} else if (options.target == 'string') {
|
||||
response = await shim.fetch(url, options);
|
||||
} else { // file
|
||||
response = await shim.fetchBlob(url, options);
|
||||
|
||||
Reference in New Issue
Block a user