1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Getting Dropbox to work in mobile app

This commit is contained in:
Laurent Cozic
2018-03-27 00:55:44 +01:00
parent 6e994fd8b9
commit 96fb7c2087
9 changed files with 162 additions and 70 deletions

View File

@ -150,7 +150,7 @@ class FileApiDriverDropbox {
async put(path, content, options = null) {
// See https://github.com/facebook/react-native/issues/14445#issuecomment-352965210
if (typeof content === 'string') content = Buffer.from(content, 'utf8')
if (typeof content === 'string') content = shim.Buffer.from(content, 'utf8')
await this.api().exec('POST', 'files/upload', content, {
'Dropbox-API-Arg': JSON.stringify({