Questions tagged [dropbox-sdk-js]

The Dropbox JavaScript SDK is a lightweight, promise based interface to the Dropbox v2 API that works in both nodejs and browser environments.

70 questions
1
vote
2 answers

Problems Downloading files using Dropbox JavaScript SDK

I need to figure out where my files are downloading when I use the filesDownload(). I don't see an argument for file destination. Here's my code: require('isomorphic-fetch'); var Dropbox = require('dropbox').Dropbox; var dbx = new Dropbox({…
1
vote
1 answer

Javascript Downloading and reading file contents from Dropbox

I am trying to download a file I uploaded as test to Dropbox. The download function works and I am getting the fileblob as well but having trouble to actually read the file contents function downloadFile() { dbx.filesDownload({path:…
arjun
  • 1,594
  • 16
  • 33
1
vote
1 answer

Can't create share link using dropbox javascript sdk

I'm trying to create a shareable link using dropbox api, but the function that I used doesn't return anything. var ACCESS_TOKEN = "access_token"; var SHARED_LINK = "/example/example.doc"; var dbx = new Dropbox({ accessToken: ACCESS_TOKEN }); var…
Xavi
  • 25
  • 3
1
vote
1 answer

Storing API access token server-side

I have built an app in React that uses the Dropbox API & will be stored on AWS S3 & CloudFront. The app accesses the Dropbox folder using a token. At the moment this token is client-side and obviously is completely accessible. I have tried reaching…
r_cahill
  • 577
  • 3
  • 9
  • 20
1
vote
0 answers

Which status code should I return?

I am doing an dropbox.js upload. I am checking for errors on the server and returning them to my frontend via json. So far so good. header('HTTP/1.1 500 Internal Server Error'); header('Content-Type: application/json; charset=UTF-8'); …
LeBlaireau
  • 17,133
  • 33
  • 112
  • 192
1
vote
2 answers

Can I use Dropbox API v2 to implement cloud storage in my web app?

I was working on a web app where one of the feature was that a user logs into our system and then uploads some files. I was wondering if there is a way I could use my own Dropbox account to store these uploaded files in an organised and secured…
1
vote
1 answer

Dropbox API doesn't return metadata for png files

Dropbox API to get the metadata for doesn't return anything for .png files. It was working fine recently but doesn't work now. Here is the API call I make: this.dropbox.filesGetMetadata({ path: file.id, include_media_info: true }).then((mdata)…
Gagik Sukiasyan
  • 846
  • 6
  • 17
1
vote
0 answers

Issues with getting video duration from dropbox

I have an application where i use dropbox-api V1 to get the video duration from files user shares from dropbox. Recently it broken, but I didn't change my codes. I decided to migrate to dropbox-api V2, but it didn't solve my problem. I'm now using…
Gagik Sukiasyan
  • 846
  • 6
  • 17
1
vote
2 answers

Issues downloading files using Dropbox JavaScript SDK

I am attempting to download a file, to the Webapp itself on the client side, using the Dropbox Javascript SDK. I want to make it clear that I only wish to download a file to a folder in the web app; I understand that due to security concerns this…
LJH
  • 7,444
  • 3
  • 10
  • 19
0
votes
1 answer

Dropbox filesListFolder says my path is invalid

I'm using the Dropbox Javascript SDK to call dropbox.filesListFolder({ path: 'apps/my_app' }) and Dropbox returns the 400 error Error in call to API function \"files/list_folder\": request body: path: 'apps/my_app' did not match pattern…
Richard
  • 14,798
  • 21
  • 70
  • 103
0
votes
0 answers

Retrieve thousands of files and folders without throttling

I'm trying to generate a nice big array for each user that contains all the files and folders the user owns as well as the users that each file/folder is shared with (e.g. users: ["John Doe": [{"name":"DemoDoc", "type": "file", "isShared": true,…
Jono Suave
  • 101
  • 1
  • 5
0
votes
0 answers

Dropbox SDK React-Native

I have react-native app for mobile and web. I have Dropbox section that I need to connect with backend. On toggle button I need to show Dropbox button and when I click on button show modal to signIn.
0
votes
0 answers

Connect Dropbox with react-native

I have react-native app for mobile and web. I have Dropbox section that I need to connect with backend. On toggle button I need to show Dropbox modal to signIn.
Manche
  • 47
  • 2
  • 10
0
votes
1 answer

Get link to the uploaded image in dropbox using JS and sdk

I want to get the link of the uploaded file that is uploaded to dropbox using dropbox sdk. I need the links to be stored in another file for a purpose. So far, I have manage to upload the files, but not get the links. relevant html & JS function I'm…
Miraz
  • 343
  • 3
  • 15
0
votes
1 answer

`concurrent_session_invalid_data_size` when uploading a file with the Dropbox API

When uploading files to the Dropbox API with the filesUploadSessionAppendV2 endpoint I'm getting a concurrent_session_invalid_data_size error if I upload files larger than my CHUNK_SIZE. Here's roughly what my node code looks like to upload…
cgenco
  • 3,370
  • 2
  • 31
  • 36