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
11
votes
1 answer

How can I indicate to the Storage Access Framework that I no longer require the loading animation?

I am writing a DocumentsProvider for Dropbox. I am attempting to follow the Google guidelines for creating a custom provider, as well as Ian Lake's post on Medium for the same. I am attempting to incorporate the feature within the Storage Access…
10
votes
1 answer

Dropbox: upload file to public file request with JavaScript

I generated a public file request in Dropbox and would like to write some javascript code to programmatically upload a file which is generated on the flow (e.g. var myJsonString = JSON.stringify(myArray)) to the public folder. As an example, I…
mat
  • 2,412
  • 5
  • 31
  • 69
6
votes
5 answers

Dropbox direct upload files from browser

I am trying to upload files directly to dropbox [from a browser / web application], The "uploadFile" function on the code API needs the file to be uploaded available on the server, this puts me in trouble, because I do not want any files to be…
Clain Dsilva
  • 1,631
  • 3
  • 25
  • 34
3
votes
1 answer

Upload blob to dropbox from client-side javascript

I have an app that runs in the client browser and doesn't have any server side (http/js is served, but nothing posts to the server). the app is redeployed on many servers (iis, apache, nginx, sometimes localhost, sometimes on an intranet) and are…
frumbert
  • 2,323
  • 5
  • 30
  • 61
2
votes
1 answer

How to use pdfjs in a google cloud function to accept a pdf read from Dropbox as a fileBinary?

Context I am using Dropbox and PDFJs library inside a Google Cloud Function What I'm doing Inside my functions folder i run npm i --save pdfjs-dist Then I download a pdf content from dropbox (this works) exports.readAProgram =…
realtebo
  • 23,922
  • 37
  • 112
  • 189
2
votes
0 answers

How to solve Malformed Origin error in Dropbox Javascript Chooser

Dropbox Chooser Error: Malformed origin I am porting an app from Objective C to Delphi 10.2. The app uses Dropbox to save and retrieve files. The iOS version uses the Dropbox SDK for iOS. I'm trying to use the Dropbox Javascript Chooser in the…
David U
  • 943
  • 1
  • 8
  • 22
2
votes
1 answer

How to access (read/write) advanced file EXIF/metadata in the Dropbox JavaScript API?

How to access (read/write) advanced file metadata in the Dropbox JavaScript API? I'm talking about things like e.g.: MacOS file tags. Or the camera model inside the EXIF data. Please note that dbx.filesGetMetadata(arg) does not provide very detailed…
mesqueeb
  • 5,277
  • 5
  • 44
  • 77
2
votes
1 answer

How to open popup with dropbox-api dropbox-js V2

I'm trying to migrate to dropbox-api v2 in my web application. Currently I have implementation of opening popup window where user connects to his/her dropbox and I get token. Which I use to get access to files user selected in Dropbox.chooser in…
Gagik Sukiasyan
  • 846
  • 6
  • 17
2
votes
0 answers

Fetch Image from dropbox to generate html by php OR by dropbox APi

I want to fetch an image from a dropbox URL. The URL is below: https://www.dropbox.com/sh/afko74vlm19yimi/AAAJ03JqyS57nHpZlYjZm6zNa?dl=0 How can I use PHP/dropbox api to fetch this image from the above URL and use it in an HTML file?
Amit Kanala
  • 123
  • 1
  • 1
  • 12
2
votes
1 answer

How to get list of shared links of files of a folder in Dropbox

I have a folder (Photos/Sample Album) in Dropbox. What I want to do is display all the images in that folder on my website. Solution I have been able to come up with is following: Use Metadata API to get all the files of the folder. Then I can use…
PhantomM
  • 825
  • 6
  • 17
  • 34
2
votes
1 answer

how to execute multiple callbacks and return results array?

I am trying to get an array of image URLs inside Dropbox in JSON format. In order to do that, I have written the following function: router.get('/thumbnails', function(req, res, next){ var images = []; var imagesCount = -1; var isLoggedIn =…
Niko Gamulin
  • 66,025
  • 95
  • 221
  • 286
1
vote
1 answer

Itererating all folders and files to get a list using js dropbox api

I need to get a list of all files by iterating all folders in the specified parent folder. I have heard that recursion is the best way to achieve, but I am unsure how to use recursion for fetching list of files in a folder using Dropbox API. The…
Code Guy
  • 3,059
  • 2
  • 30
  • 74
1
vote
1 answer

Fetch API uploads corrupted Excel files to Dropbox

I'm using a Dropbox SDK JS ("dropbox": "^10.10.0") to upload files via filesGetTemporaryUploadLink, this method returns a temporal URL for file uploading. The way I upload a file: const fileUploadResult = await fetch(uploadDestination.url, { …
Mike
  • 14,010
  • 29
  • 101
  • 161
1
vote
0 answers

Can't get access token in dropbox uses javascript fetch request

l try to get access token uses javascript fetch in the next way: fetch('https://api.dropboxapi.com/oauth2/token', { method: 'POST', code: AUTHORIZATION_CODE, grant_type: 'authorization_code', redirect_uri:…
user257924
  • 11
  • 1
1
vote
1 answer

Dropbox JavaScript SDK suddenly gives "Dropbox.Dropbox is not a constructor" error

I am using Dropbox JavaScript SDK. Until 8 Jun 2020 my upload code worked fine but after 8 Jun 2020 it gives an error. See below for the code and error: code var ACCESS_TOKEN = ''; var dbx = new…
1
2 3 4 5