Menu
  • HOME
  • TAGS

Hosting images on Dropbox

asp.net,dropbox-api,cloud-hosting

As the other comments and answers say, a normal CDN is probably a better choice for this. For reference though, the Dropbox API does let you get publicly shareable links to files: https://www.dropbox.com/developers/core/docs#shares You can also modify these links as desired: https://www.dropbox.com/help/201 There's also a direct and temporary version: https://www.dropbox.com/developers/core/docs#media...

Download file from dropbox to the server

php,dropbox,dropbox-api,dropbox-php

The Dropbox browser client is developed to be used by the Registered Users only, where user needs to sign-in and then he can access files there. But as you said you want to access Dropbox files, on behalf of the users, you need to make use of the Dropbox Core...

how to get direct link of folder with Dropbox Ruby SDK?

ruby,dropbox,dropbox-api

It doesn't look like the Ruby library currently exposes this. But the source code is here: https://github.com/dropbox/dropbox-sdk-ruby/blob/master/lib/dropbox_sdk.rb#L1222-L1225. If you're up for it, please submit a pull request to add this to the SDK. In the meantime, here's standalone code to do this: def long_share_url(access_token, path) client = DropboxClient.new(access_token) session =...

Node-js — Download and store file - Binary - Archieve corrupt

node.js,binary,dropbox-api,node-webkit,fs

Got it working! client.readFile("package.nw", {binary : true}, function(error, data) { if (error) { return showError(error); // Something went wrong. throw new Error(error); } toastr.info("Storing update.."); console.log(data); fs.writeFile("package.nw", data, 'binary', function(err) { if(err) { return showError(error); } toastr.info("Update complete!"); }); }); had to use {binary : true} to get it working!...

iOS dropbox api oauth_token error

ios,dropbox-api

First of all - you have to create REST client only after session became linked - this will ensure you that DBRestClient will be connected to real session. Second - problems can be if there are a Dropbox application installed on device with your application. In this case your application...

Check Dropbox Datastore API for Previous Sync (iOS)

ios,dropbox-api

My guess would be that it's a race condition. The first time you link an account, it will take time before the data is loaded, and you need to set up an observer to wait for that initial sync to take place. Perhaps some of the confusion is here: //Sync...

Dropbox API no longer working, CSRF mismatch

php,dropbox,csrf,dropbox-api,dropbox-php

I spoke to Dropbox API support. They were very helpful and suggested a number of things: This error indicates that the state value returned to your redirect URI doesn't match the CSRF token that was stored in the session. The state value on your sample redirect URI matches the state...

Uploading to dropbox via node js fails

javascript,node.js,dropbox,dropbox-api

It looks like you're missing the cursor parameter to resumableUploadFinish. Also, you should be passing in a cursor to resumableUploadStep after the first call too. I think the code you want is something like this (completely untested): var cursor = null; stream.on('data', function (data) { client.resumableUploadStep(data, cursor, function (error, new_cursor)...

Dropbox Core API Java - cannot get folder size in metadata

java,dropbox,dropbox-api

To get the rest of the metadata, you'll want to cast to a DbxEntry.Folder: DbxEntry entry = client.getMetadata("/testFolder"); if (entry instanceof DbxEntry.Folder) { DbxEntry.Folder folder = (DbxEntry.Folder)entry; System.out.println(folder.toStringMultiline()); } But as Olivier pointed out, folders themselves do not have sizes in Dropbox. If you're interested in how big the files...

how to choose files always from my account using dropbox drop-in app?

javascript,dropbox-api

The Drop-ins are part of the Dropbox web site, and are built to show the user their own accounts, so it's not possible to use the Drop-ins with a single pre-defined account for all users. The Dropbox Core API was also designed with the intention that each user would link...

Cannot add object as hash value in Rake: TypeError: no implicit conversion of DropboxClient into String

ruby,rake,dropbox-api

I get the same error in irb, and it makes sense to me. ENV is for getting and setting environment variables, which have string values. So you can't store something that's not a string in it. I'm not sure why you're trying to do that anyway? Are you trying to...

Android Make a new Async task have priority over others in background or Dropbox Core API issue

android,multithreading,android-asynctask,dropbox-api

This is due to how async tasks actually work. They don't run in parallel on 3.0+ (they used to until 3.0), because too many newbie developers weren't able to program in parallel without errors, so Google decided to change it. Instead, async tasks run on a single thread in FIFO...

Rails+Dropbox Sync Architecture

ruby-on-rails,sync,dropbox-api

Well, since no one else is chiming in, I'll give what I've since learned as the answer. Yes, a background process is needed to do these. Some sync jobs could involve hundreds of queries, and they currently get initiated with a single HTTP request. They won't finish in time before...

Load DropNet user token and secret from a database in a C# WinForms application

c#,dropbox-api,dropnet

SO I was almost there. It turns out all I had to do was create a new instance of DropNet client as opposed to a new UserLogin instance on the page load event! UserAccountManagerBLL accMan = new UserAccountManagerBLL(); UserToken = accMan.GetToken(Email); UserSecret = accMan.GetSecret(Email); _Client = new DropNetClient(appKey, appSecret, UserToken,...

Using dropbox Chooser drop-in to retrieve a non-expiring link to files

dropbox,dropbox-api

You can just get a preview link and convert it. See https://www.dropbox.com/developers/blog/53/programmatically-download-content-from-share-links.

DropboxSDK: What's the benefit of uploadFileChunk: over uploadFile: in DBRestClient?

file-upload,dropbox,dropbox-api

See https://www.dropbox.com/developers/core/docs#files_put and https://www.dropbox.com/developers/core/docs#chunked-upload. The former allows for up to 150MB and writes the file in a single HTTP request, so there's no way to resume a failed upload without starting over from the beginning of the file. The latter allows any size, and any failed upload can be resumed...

Dropbox Chooser unable to handle link ios swift

ios,swift,dropbox-api

I found my problem! I forgot this configuration -> In the URL Schemes enter db-APP_KEY (replacing APP_KEY with the key generated when you created your app). And now my methods is changed. In my UIViewController: func dropboxBtn(sender: AnyObject) { DBChooser.defaultChooser().openChooserForLinkType(DBChooserLinkTypePreview, fromViewController: self, completion: { (results: [AnyObject]!) -> Void in println(results.description)...

Directory sandboxed access for Google Drive / Dropbox API / RemoteStorage apps?

html5,google-drive-sdk,dropbox-api

The Dropbox Apps API provides the ability to restrict any app using your API key to a single directory of your Dropbox account. So users could create an API key with access to a specific directory and then plug that into your app. However, that's not a user-friendly workflow. I...

is it possible to use dropbox datastore api as shared datastore?

dropbox-api

The Dropbox Datastore API will automatically sync datastores across devices running an app linked to the same account. The Dropbox Datastore API also offers the ability to share datastores across accounts. For more information on how your app can share datastores, check out the tutorial here: https://www.dropbox.com/developers/datastore/tutorial/ios#sharing-a-datastore...

Get Uploader name

c#,dropbox,dropbox-api

The modifier field tells you who last changed the file, but only if the file is in a shared folder.

Get Dropbox accessToken using DbxWebAuth.finish method

java,oauth-2.0,dropbox-api

The Dropbox Java Core SDK tutorial does use DbxWebAuthNoRedirect which has a different finish method than DbxWebAuth: DbxWebAuthNoRedirect.finish DbxWebAuth.finish The DbxWebAuth.finish documentation has the following for queryParams: queryParams - The query parameters on the GET request to your redirectUri. For a sample of how to use it, the web-file-browser example...

Dropbox can't create new app on the site

dropbox-api

(I work at Dropbox). We're currently investigating this issue and hope to have it resolved soon.

Get images files dimensions remotely through file URL

ios,objective-c,image,remote-access,dropbox-api

I figured out my answer. I use an UIImage Category than download part of the file through an URL. Once it get enough data to define the size it stops the download. I did some tests and it downloads approximately 30 kB to get the picture's dimensions, whatever if the...

loadStreamableURLForFile() in Dropbox iOS SDK does not return anything

ios,objective-c,dropbox,dropbox-api

In the Dropbox iOS Core SDK, the result of asynchronous calls like this get delivered via a delegate. See https://www.dropbox.com/developers/core/start/ios and the use of uploadedFile and uploadFileFailedWithError in particular to understand the delegate pattern. You should implement these methods (from DBRestClient.h) to receive the link: - (void)restClient:(DBRestClient*)restClient loadedSharableLink:(NSString*)link forFile:(NSString*)path; -...

Custom core API calls with dropbox.js

javascript,ajax,xmlhttprequest,dropbox-api

You can probably do that, but based on the docs, I think this will work to make a /media call (completely untested code): var path = '/path/to/file'; client.makeUrl(path, { download: true }, function (error, link) { alert('Got back URL: ' + link.url); } ...

Read and Write Dropbox Files without External Files

python,dropbox,dropbox-api

You can send strings directly to put_file. It doesn't have to be a file object: # ... insert example code in OP's SO link to get client object # uploading s = 'This is a line\n' s += 'This is another line' response = client.put_file('/magnum-opus.txt', s) And files received using...

Dropbox Sync api using multiple Activities

android,dropbox-api

Do not set a static variable on an Activity // do not do this! MovementDetection.mAccount=chosenAccount; When the user has linked to an account, it will stay linked in the lifetime of the app (until uninstalled or explicitly unlinked). When you wish to access Dropbox in other activities (after linking -...

How to find the member_id value needed for custom header X-Dropbox-Perform-As-Member

dropbox-api

There are a few places the member ID might come from... it depends a lot on the kind of app you're building. One likely source is a call to /members/list. Another likely source is /members/get_info (if you're looking up by email address). For an auditing app that's watching activity within...

Access DropBox or Google Drive API from a Web app

ios,web-applications,browser,google-drive-sdk,dropbox-api

We ended up making a hybrid app using PhoneGap for iOS.

Store a box or dropbox file

java,google-app-engine,google-cloud-storage,dropbox-api,box-api

You don't say what you're trying to write to Cloud Storage, so I will assume you already have some content that you want to write, in which case the Google Cloud Storage Client API (javadoc) should give you what you're looking for. In particular, GcsOutputChannel. This allows you to write...

Dropbox 400 Error in JavaScript Datastore API Request

dropbox-api

In the JS SDK, there's an implicit "sync" every time your code yields control back to the browser. So if you write a for loop entering a lot of data, that will all go into a single delta. You can break things up by writing in smaller chunks. For example,...

Dropbox API Chooser with JS for multiple domains

ruby,dropbox,dropbox-api

The Dropbox Drop-ins API doesn't have any way of automatically adding domains, or registering any sort of wildcard, but we're tracking this as a feature request. For reference, one thing that does work, though it sounds like it may not apply to your scenario, is registering just, for example, example.com,...

NSInputStream with url coming up nil in iOS

ios,objective-c,dropbox,dropbox-api,nsinputstream

so thanks to rmaddy's suggestion, I looked up NSURLConnection but decided to use the features of NSURLSession instead. I used the NSURLSessionDownloadTask like this. Familiarity with the Dropbox chooser should help. -(IBAction)didPressChooser:(id)sender { { [[DBChooser defaultChooser] openChooserForLinkType:DBChooserLinkTypeDirect fromViewController:self completion:^(NSArray *results) { if ([results count]) { DBChooserResult *_result = results[0]; NSString...

Mulitiple Files upload to Dropbox by PHP API

dropbox,dropbox-api,dropbox-php

The Dropbox API does not currently offer any bulk or batch uploading, but we're tracking this as a feature request. That being the case, if you want to run this code in an async fashion, you can do so by running it in the background on another thread. There are...

How to get recordsChanged sync status using JS Datastore API?

dropbox-api

I found my answer. Steve Marx has a post on the Dropbox developer blog that covers the information I needed. There is a datastore.getSyncStatus().uploading property that returns true or false depending on the state of the datastore sync status. Source: https://www.dropbox.com/developers/blog/61/checking-the-datastore-sync-status-in-javascript...

Is it possible to download or read a file list or directory list from dropbox and export to a file (txt)?

file,web,dropbox,dropbox-api

Yes, Dropbox offers an API that covers all of this functionality. For example: to list files: https://www.dropbox.com/developers/core/docs#metadata to download files: https://www.dropbox.com/developers/core/docs#files-GET to upload files: https://www.dropbox.com/developers/core/docs#files_put to share files via shared links: https://www.dropbox.com/developers/core/docs#shares There are also official SDKs available we recommend using: https://www.dropbox.com/developers/core...

Dropbox Core API for Android: Activity stops after authentication

android,android-intent,dropbox,dropbox-api

I solved my problem by adding android:launchMode="singleTask" in my app's manifest....

Does sharpbox use dropbox syc or datastore apis

dropbox-api,sharpbox

No, the SharpBox library uses the Dropbox Core API, not the Dropbox Sync SDK or Datastore API, and so it should not be affected.

iOS Dropbox Datastore API: WebKit Exception + Unsupported URL

dropbox-api

It turns out that the errors given by Xcode were a bit of a red herring in this case. I was firing an NSNotification after Dropbox finished authenticating, and in doing so I was using this: NSNotificationCenter.defaultCenter().addObserver(self, selector: "dropboxWasLinked:", name: "dropboxLinked", object: nil) ...but my dropboxWasLinked method wasn't set up...

Dropbox API Shared Folders

python,dropbox-api,shared-folders

I ran into this problem too. I suspect the Python API hasn't been updated to support the somewhat new /shared_folders REST API call. I managed to use the rest_client directly to access the /shared_folders API. Here is some example Python code, assuming you already have a DropboxClient object in "client":...

having trouble with getting file from drop box and saving on my server, please help me

c#,dropbox-api

You're setting linkType to "preview", which gives you a link to a preview page for the file, and not the file content itself. If you want direct access to the file content, e.g., to immediately and programmatically download the content to your server, as it seems you're trying to do,...

Sync with Dropbox Core API

ios,dropbox-api

This is a relatively broad question, and the specifics will be very much dependant on each app. Dropbox doesn't offer a general guide for implementing sync like this, but I'll try to point to some useful resources. First, you'll probably want to use the iOS Core SDK (download, tutorial). Alternatively,...

Getting Request Token From Dropbox OAuth “Invalid OAuth Request”

oauth,dropbox,dropbox-api

It looks like you're putting "Authorization: OAuth ..." in the body of the POST request instead of putting "OAuth ..." in the Authorization header. Give this code a try instead (untested, sorry): NSString* [email protected]"1"; NSString* [email protected]"PLAINTEXT"; NSString* authorizationHeader = [NSString stringWithFormat: @"OAuth oauth_version=\"%@\", oauth_signature_method=\"%@\", oauth_consumer_key=\"%@\", oauth_signature=\"%@&\"",oauthVersion,oauth_signature_method,APP_KEY,APP_SECRET]; NSMutableURLRequest* request=...

How can I download for longer than three minutes with Dropbox?

ios,ios7,ios8,dropbox-api,background-task

Background tasks are, as you found out, severely restricted. A different way of solving this problem is by disabling the automatic lock of the ipad as soon as the download starts: [UIApplication sharedApplication].idleTimerDisabled = YES; Don't forget to re-enable the timers when download is complete to avoid excessive power usage....

Use of dropbox with core APIs, but avoiding login page

oauth,oauth-2.0,dropbox,dropbox-api,dropbox-php

Putting probable solution to my own question here: The main issue here was about re-generation of the Access Token at some intervals, that too without any user interaction, a backend stuff. After going through Dropbox APIs, I concluded there is no API exposed for re-generation of Access Token automatedly. But...

Download a thubnails of an image using Dropbox API for php

php,dropbox-api

You're opening and closing $f without ever writing anything into it. getThumbnail returns an array with two elements: the metadata for the file and the thumbnail data. So I think you'll want something like this: $f = fopen($img_name, 'w+b'); list($fileMetadata, $thumbnailData) = $dbxClient->getThumbnail($path, 'jpeg', 'xl'); fwrite($f, $thumbnailData); fclose($f); ...

Dropbox iOS SDK “Broken”?```

ios,sdk,dropbox,dropbox-api

Question 1: Yes, that's the expected behavior. Typically you would use delta to watch for changes. Question 2: Yes, I would assume that delta is working. You haven't shown any code, so it's impossible to guess what's going wrong....

How to get Dropbox users avatar (account photo)

dropbox-api

It seems that it is not possible... Check the API documentation: Account Info

How to make dropbox authenticate a popup instead of redirect

javascript,dropbox,dropbox-api

See https://github.com/dropbox/dropbox-js/blob/stable/guides/builtin_drivers.md. client.authDriver(new Dropbox.AuthDriver.Popup({ receiverUrl: "https://url.to/oauth_receiver.html"})); and run this in your oauth_receiver.html: Dropbox.AuthDriver.Popup.oauthReceiver(); ...

Dropbox file meta data from shared link

android,dropbox,dropbox-api

Unfortunately, no, there's currently no API for accessing file/folder metadata via Dropbox shared links. We're tracking this as a feature request though.

Is it ok to use http dropbox file links instead of https?

dropbox,dropbox-api

Strange. I get a 400 error when I try to do the same thing. Even if HTTP is working for you, I'd advise against using it. Someone eavesdropping on your traffic could learn the link to the file, and it's also possible for someone to impersonate dropboxusercontent.com and send you...

Dropbox.js how to download an specific revision? is it possible?

javascript,download,dropbox,dropbox-api

In dropbox.js, the method to download a file is called readFile, and it takes an optional rev parameter to specify which revision of the file you want to access. So something like client.readFile(path, { rev: 'abc123' }, function (err, contents) { ... }); should work. The code you have so...

Dropbox: API permission by folder?

dropbox,dropbox-api

No, the Dropbox API doesn't currently offer a custom path-based permission. We're tracking this as a feature request though.

Write file to dropbox via cronjob.de

javascript,cron,dropbox,dropbox-api

The problem is that cronjob.deuses an browser / command that won't evaluate javascript. (such as curl) So your javascript code will never be executed. You should rather use an backend such as phpto run tasks of this kind....

Dropbox issues not able to Upload a text file in Android

android,eclipse,dropbox,dropbox-api

Here is the Solution for the above question which is asked by me itself. String file_name = "/my_file.txt"; String file_path = Environment.getExternalStorageDirectory() .getAbsolutePath() + file_name; AndroidAuthSession session; public void initDropBox() { AppKeyPair appKeys = new AppKeyPair(APP_KEY, APP_SECRET); session = new AndroidAuthSession(appKeys); mDBApi = new DropboxAPI<AndroidAuthSession>(session); mDBApi.getSession().startOAuth2Authentication(ChatActivity.this); } Entry response; public...

DropboxUnlinkedException - if you have not set an access token pair on the session, or if the user has revoked access

android,dropbox-api

Terrible dropbox documentation I must say public int onStartCommand(Intent intent, int flags, int startId) { Log.d(God.TAG, "Initializing Dropbox"); AppKeyPair appKeys = new AppKeyPair(God.DROPBOX_APP_KEY, God.DROPBOX_APP_SECRET); AndroidAuthSession session = new AndroidAuthSession(appKeys); mDBApi = new DropboxAPI<AndroidAuthSession>(session); mDBApi.getSession().startOAuth2Authentication(this); if (mDBApi != null && mDBApi.getSession().authenticationSuccessful()) { try { // Required to complete auth, sets the...

Is there a way to tell if a Dropbox chunk upload commit was successful?

ios,swift,dropbox-api

€dited: there are a couple of delegate methods you can use func restClient(client: DBRestClient!, loadedFile destPath: String!, contentType: String!, metadata: DBMetadata!) { NSLog("File DOWNLOADED successfully to path: %@", destPath); } func restClient(client: DBRestClient!, loadFileFailedWithError error: NSError!) { NSLog("File DOWNLOAD failed with error: %@", error) } func restClient(client: DBRestClient!, uploadFileFailedWithError error:...

Which is the best way to sync Core Data to Dropbox?

ios,objective-c,core-data,dropbox-api

Based on my comment you should clarify what you mean with sync Core Data to Dropbox. Sync is a quite complex arguments. If your goal is to store the entire persistent store file (e.g. sqlite store) in Dropbox Sync Api is the way. You can save the file through API....

PHP: Dropbox Token Expired or Does not exist

php,dropbox-api

I managed to get another working code and it works absolutely fine. It performs upload and download of files on dropbox. you can get the working code from the link below, however in the code i'm manually changing the names of the files to upload instead of holding it in...

About arbitrary data

node.js,dropbox,dropbox-api

"Arbitrary data" means anything. A string, a number, binary data, whatever. Since it's to be used as a CSRF token, it needs to be an unpredictable value that's associated with the user's session. Here are some guidelines on CSRF tokens....

Signin to Dropbox using access token

c#,dropbox-api

So is it possible to use the access token manually obtained as in the second link to sign in to Dropbox? If this is your question, the answer is NO. You cannot. Dropbox states that in the documentation. Note that the generated access token only works for your own...

Error 401 in JavaScript Dropbox SDK

javascript,authentication,dropbox,dropbox-api

EDIT It looks like the code I posted on the Dropbox dev blog doesn't work (now?). You need to manually check whether the client is authenticated, since the callback from client.authenticate is called no matter what. I'll update the blog post. The fixed code should look like this: // Try...

Increase the limit of file upload size in Heroku while uploading to Dropbox

php,heroku,file-upload,dropbox,dropbox-api

To increase the file upload limit in Heroku while uploading to Dropbox, follow these steps: Create a file named custom_php.ini, preferably. Insert two attributes post_max_size and upload_max_filesize and set their value to the desired upload limit. (In my case, its 100M) Create a ProcFile and add this line web: vendor/bin/heroku-php-apache2...

CORS support for dl.dropboxuserconent.com?

javascript,cors,dropbox-api

It seems to be working fine for me. Perhaps you can share the code you're using and the specific issue you're seeing: $ curl -i https://dl.dropboxusercontent.com/s/mrt5fei8gsndfqb/test.json -H Origin:www.example.com HTTP/1.1 200 OK accept-ranges: bytes Access-Control-Allow-Origin: * Access-Control-Expose-Headers: Accept-Ranges, Content-Range, X-Dropbox-Metadata, X-Dropbox-Request-Id, X-JSON, X-Server-Response-Time Access-Control-Max-Age: 600 cache-control: max-age=0 content-disposition: inline; filename="test.json"; filename*=UTF-8''test.json...

I am not getting desired output from Dropbox API [solved]

dropbox-api

Check out the app permissions here: https://www.dropbox.com/developers/reference/devguide. My guess would be that you created an app with App Folder permissions. (When you created the app, you clicked "Yes" when asked "Can your app be limited to its own folder?") If you need different permissions, you'll have to create a new...

Sending a buffer to the client to download

node.js,express,dropbox-api

It looks like the dbox module you're using has a stream() option which is probably better suited for file downloads. You should also make a call to metadata to look up the file's mime type. For example: var middleware = function(req, res, next) { var client = DBoxApp.client(req.session.dbox_access_token); var file...

Showing file selection UI : Integrating Dropbox with OAuth 2

dropbox,dropbox-api

You definitely can't put dropbox.com into an iframe, for security reasons (e.g. clickjacking). A few suggestions: Can you just use the Chooser for your use case? That would certainly be easier for you and your users. If you can't use the Chooser, is there a reason you're not using dropbox.js?...

Dropbox Core API JAVA Authorization Code

java,connection,dropbox,dropbox-api

You should be storing and reusing the access token, not the authorization code. So after doing this once: String accessToken = authFinish.accessToken; You should just replace the whole thing with String accessToken = "<the one you already got>"; BTW, if you just need an access token for your own account,...

Dropnet on MVC after redirect

c#,dropbox,dropbox-api,dropnet

You were on the right track trying to put the DropNetClient instance in the session. Though you only need to store the userLogin object once you call _client.GetToken() then user that user token and secret to create a new instance of the DropNetClient and finish the authentication process. For more...

Dropbox API Token flow - no token in response

c#,oauth-2.0,dropbox-api

In the implicit flow, the access token is part of the fragment of the URL (the part after the hash). URL fragments aren't sent to the server. BTW, you might take a look at https://blogs.dropbox.com/developers/2014/04/dropbox-authorization-in-a-windows-forms-app/. If you're embedding a WebBrowser control anyway, there's no need to redirect to localhost at...

Dropbox API - Node.js - Remember authentication

javascript,node.js,dropbox-api

You can extract the access token after auth via client.credentials().token and persist it. Then on subsequent runs, you can use new Dropbox.Client({ token: savedToken }); to avoid having to go through OAuth again....

Check if file exists on Dropbox using Android Dropbox API

java,android,dropbox-api

Calling metadata and looking for an exception with a 404 response is probably the best way to check the existence of a single file in Dropbox. Depending on what you're trying to do, there are likely better approaches: If you're enumerating all files anyway (e.g. using delta), then there's no...

http-link to private Dropbox files

android,dropbox-api

No, the Dropbox API doesn't currently offer anything exactly like what you describe. If you need to access file content from your app, the best way to do so is using the /files (GET) API call, which returns the file data directly: HTTP docs: https://www.dropbox.com/developers/core/docs#files-GET Android docs: https://www.dropbox.com/static/developers/dropbox-android-sdk-1.6.2-docs/com/dropbox/client2/DropboxAPI.html#getFile(java.lang.String, java.lang.String, java.io.OutputStream,...

How to get metadata with include_media_info?

ios,dropbox-api

The official Dropbox iOS Core SDK doesn't currently support include_media_info yet, but it is open source so you can modify it to support it. For example, the SDK uses this method to call the HTTP API: - (void)loadMetadata:(NSString*)path withParams:(NSDictionary *)params The documentation for the HTTP endpoint itself can be found...

How can I detect the particular given dropbox path is file or not using android core API?

android,dropbox-api

I found the snippet The isDir field on DropboxAPI.Entry tells you if the Entry is a file or folder. // Get the metadata for a directory Entry dirent = mApi.metadata(mPath, 1000, null, true, null); if (!dirent.isDir || dirent.contents == null) { // It's not a directory, or there's nothing in...

How do I use the Dropbox Sync API to keep a directory and its contents in sync?

ios,sync,dropbox-api

If you need to know what files changed via the Sync API, your only choice is to compare before-and-after when something changes. So you'll need to maintain information about your local state, like what rev of each file exists on the local device and then compare that with the new...

Android Dropbox AccessToken

android,dropbox-api

The code you posted is for the Dropbox Android Core SDK, and the AndroidAuthSession constructor you're using is meant for OAuth 1 access tokens, but it sounds like you have an OAuth 2 access token. For reference, the Dropbox API currently supports both OAuth 1 and OAuth 2. Access tokens...

Dropbox / Box API direct download file with access token

php,curl,dropbox-api,box-api

For reference, with Dropbox at least, you can pass the access token in a URL parameter "access_token" as opposed to in the Authorization header. Also, in a situation where you need a direct download link but can't supply the access token, you can use the URL returned by /media: https://www.dropbox.com/developers/core/docs#media...

Dropbox SDK using PHP

php,dropbox,dropbox-api,dropbox-php

Are you sure your client id or client secret is correct? The error clearly says one of them is wrong.

shared host has fixed maximum execution time; my php script for admin exceeds that

php,dropbox-api,execution-time,http-post

I think you should refactor your logic, using also some client-side logic... You should first download the structure of remote folder (with getMetadataWithChildren()), and store it on disk with some kind of indexing (i.e.: assigning each file/dir to be downloaded a unique id). This task should hopefully terminate within the...

Dropbox Access Token Expiry

dropbox,dropbox-api

It effectively never expires. But users can invalidate tokens by unlinking an app. (In the case of an App folder app, they can delete the app folder from their Dropbox. For all apps, they can unlink the app on dropbox.com.)

Revoke Dropbox token programatically

php,token,dropbox,dropbox-api,dropbox-php

Yes, you can use the /disable_access_token endpoint: https://www.dropbox.com/developers/core/docs#disable-token...

Dropbox file upload automatically using php

php,dropbox,dropbox-api,dropbox-php

The user only has to authorize your app once. After that, you can just keep reusing that access token. (You can hardcode it in your script.) EDIT From https://www.dropbox.com/developers/core/start/php: Finally, call finish to convert the authorization code into an access token. list($accessToken, $dropboxUserId) = $webAuth->finish($authCode); print "Access Token: " ....

How to Implement Dropbox in android ?I have implemented the API successfully but it still not working

android,dropbox,dropbox-api

Try this, String file_name = "/my_file.txt"; String file_path = Environment.getExternalStorageDirectory() .getAbsolutePath() + file_name; AndroidAuthSession session; public void initDropBox() { AppKeyPair appKeys = new AppKeyPair(APP_KEY, APP_SECRET); session = new AndroidAuthSession(appKeys); mDBApi = new DropboxAPI<AndroidAuthSession>(session); mDBApi.getSession().startOAuth2Authentication(ChatActivity.this); } Entry response; public void uploadFile() { writeFileContent(file_path); File file = new File(file_path); FileInputStream...

Dropbox api for android returning null for AccessTokenSecret

java,android,eclipse,dropbox-api

In the Dropbox Android Core SDK, the getAccessTokenPair method returns an OAuth 1 access token, if you have one, as an AccessTokenPair. The getOAuth2AccessToken returns an OAuth 2 access token, if you have one. Note that OAuth 2 access tokens are only one piece (i.e, basically just one string) while...

Callback for upload progress

python,dropbox-api

You mean, you want to show progress while the file is uploading (on a progressbar or something)? You probably need get_chunked_uploader() From API Docs: DESCRIPTION Uploads large files to Dropbox in multiple chunks. Also has the ability to resume if the upload is interrupted. This allows for uploads larger than...

Test Dropbox webhooks implementation with self-signed certificate?

dropbox-api,webhooks

For local development, I leaned on https://github.com/dropbox/dropbox_hook pretty hard to test everything. It's what I would recommend for local development of dropbox webhooks.

Use imagick and php to create a thumbnail of an image which is in dropbox

php,dropbox-api,imagick

If you are access the data over HTTP then there won't be a file system path for you to use. You'll need to use the API to get the file over HTTP and then either save it in a temporary location or pass the data directly to ImageMagick. You could...

Accessing Dropbox Core API Error Information iOS 8 Xcode

ios,objective-c,dropbox-api

I decided to do this the hard way - by parsing the error data. In this case, my code creates the filenames and I always use the same base and the same number of characters in the file name. This works, but I'd still like to know the more elegant...

Prompt user to share a Dropbox folder with another user

dropbox-api

If the user is signed in to Dropbox, you can use links of this format: https://www.dropbox.com/home/FOLDERNAME?shareoptions=1 Replace FOLDERNAME with the URL-encoded representation of the shared folder name (e.g., "My Folder" becomes "My%20Folder"). This gets you to the sharing screen at least; the user still needs to type in the email...

Using the Chooser with specific file extensions in ios

ios,dropbox,dropbox-api

No, the Chooser on Android and iOS doesn't support filtering by file extension.

How to create folder on dropbox using php

php,dropbox-api,dropbox-php

Since CreateFolder function seems to be in a class ($this->apiCall points to that), $x should be encapsulated in a function (that is the error that's shown). So to make it work, just call it from outside class. You are using DropboxClient.php so following sample.php from this package your create a...

Get gps metadata from image in dropbox using PHP

php,metadata,dropbox-api

As you noted, the PHP library doesn't support the include_media_info parameter, so you'd need to modify the source code of the library to add support. E.g. you could add this method: function getMetadataWithMediaInfo($path) { Path::checkArg("path", $path); return $this->_getMetadata($path, array("include_media_info" => "true")); } ...

Add Dropbox SDK to my app already running Chooser API, and is live on store

ios,dropbox,dropbox-api

You'll need to create a new app, but don't delete the old one. (Deleting the old one will break your existing app in the app store.) Once you've created the new app with the right permission, you can switch to using the new app key everywhere in your app (in...

Mimic Dropbox App video streaming - HTTP live streaming directly trough Mp4

ios,video,amazon-web-services,mpmovieplayercontroller,dropbox-api

Dropbox had a blog post that explains exactly how they do it: https://tech.dropbox.com/2014/02/video-processing-at-dropbox/

dropbox oauth2 dynamic return URL

oauth-2.0,dropbox-api

Florent's comment is correct, this isn't currently possible, as all OAuth 2 redirect URIs are required to be pre-registered as a matter of security. I'll be sure to pass this along as feedback though. As mentioned though, one thing you may be able to do instead is to use one...

Save image to dropbox with data from canvas

javascript,html5,canvas,dropbox,dropbox-api

Got it to work finally! I used another function to convert base64 to bufferArray and remove the 'data:image/png;base64,' from the string and it worked. Hopefully this will help someone else in the future. function _base64ToArrayBuffer(base64) { base64 = base64.split('data:image/png;base64,').join(''); var binary_string = window.atob(base64), len = binary_string.length, bytes = new Uint8Array(...