Greg-DB Dropbox Community Moderator

Comments

  • Yes, unfortunately things can get complicated like that when a particular path has been both a file and a folder, but I believe your described workaround is right.
  • Thanks for the detailed post, and sorry the documentation isn't clearer on this. Folders do technically have rev values (due to the specifics of how this works on the backend) but /revisions and /restore only work with files, not folders. Likewise, /metadata with a rev parameter isn't meant to be used for folders, and…
  • That's not currently possible, but I'm passing this along as a feature request.
  • No problem I'm happy to help. Also, I should mention, one of the advantages of chunked uploading is that even if one of the chunked uploading requests fails, you only have to re-send that one request's worth of data, as opposed to potentially almost the whole file in the single request upload scenario. That being the case,…
  • When using chunked upload instead of single request uploading, there's extra overhead, due to the additional requests that need to be made. So, while it should be more reliable (i.e., less likely to timeout), it can take longer. You can optimize this compromise for your scenario by choosing your chunk size (i.e., how much…
  • By the way, here's a quick sample I put together. I haven't tested this fully, so don't just ship this, but I believe the basics are right: - (void) doTest { if ([[DBSession sharedSession] isLinked]) { NSLog(@"Running test..."); // Write a file to the local documents directory NSString *text = @"Hello world. Usually…
  • The first parameter to uploadFileChunk should be the upload ID, not the destination file name. The first time you call uploadFileChunk though, since you don't know the upload ID yet, you should just pass in nil. Make sure to implement the error callback too: - (void)restClient:(DBRestClient *)client…
  • The error message is indicating that you have the wrong root set. You set that when you construct your DBSession using DBSession:initWithAppKey:appSecret:root:. It sounds like you're supplying kDBRootAppFolder when you should be supplying kDBRootDropbox to match your app registration.
  • We don't currently have a Swift sample app for the iOS Core SDK, but it should be possible to use it in a Swift app. There's a blog post here about how to use the Sync SDK in a Swift app: https://blogs.dropbox.com/developers/2014/09/swift-apps-with-dropbox/ I believe the same basic steps should work with the Core SDK. Once…
  • Hi Georg, the iOS Core SDK on CocoaPods is actually maintained by the community, so the maintainer will have to make that update. I'll send this along to the team as a request to see if we can take ownership of that though.
  • Hi all, we have a new release of the iOS Core SDK built with bitcode: https://www.dropbox.com/developers-v1/core/sdks/ios
  • We don't have an updated Core SDK release with bitcode enabled, but I'll send this along as feedback to the team.
  • John, I don't recall running into any issues like that on the occasions I've added the source code directly. Can you open an API ticket with the steps to reproduce this so we can look into it?
  • I don't have a timeline for the next update for the iOS Core SDK but I'll send this along to the team as a request.
  • No update right now. The best solution if you need it is to add the source directly.
  • No ETA right now. I recommend adding the source directly if you need it.
  • You can just add the source directly to your project instead of trying to rebuild the framework.
  • Thanks Will, I'm sending this along to the team as a request for bitcode in the iOS Core SDK. Being as the iOS Core SDK is open source though, one other option here is to add the SDK source directly to your project, instead of the framework file. The source is included with the SDK download here:…
  • #1. Yes, the Dropbox API does have various ways to upload and download content. To access content, in various scenarios: https://www.dropbox.com/developers/core/docs#files-GET https://www.dropbox.com/developers/core/docs#shares https://www.dropbox.com/developers/core/docs#media…
  • Hi Girum, this thread is posted in the "API Development" forum, for programmers using the Dropbox API. It sounds like you're trying to share some feedback regarding one of the Dropbox apps, so you'd be better served by opening a new thread in the "Production Feedback" forum:…
  • Ray, I have a sample of registering a progress callback for files.download in SwiftyDropbox here: https://stackoverflow.com/questions/35659454/swiftydropbox-download-progress/35659995#35659995 It should work the same way for files.upload. There's also a sample of using upload sessions here:…
  • Are you referring to the Dropbox desktop client, or an app you made that uses the Dropbox API? If it's the later, what SDK/library are you using?
  • That's a security feature of CORS. I'm not familiar with the dbox library you're using, but you need to make sure you don't use credentials (i.e., the withCredentials XHR field, for example, to set cookies) when making these API calls.
  • To use the Core API, you'll need to register a "Dropbox API app", not a "Drop-ins app": https://www.dropbox.com/developers/apps/create Drop-ins don't have app secrets, unlike Dropbox API apps. And yes, to use the Core API, you'll need to have the user authorize the app to access their account. Then, you can make API calls…
  • You can upload data to Dropbox using the /files_put endpoint on the Core API: https://www.dropbox.com/developers/core/docs#files_put That endpoint accepts both PUT and POST. You can use the HTTP endpoints, such as the above, directly, but we recommend using an official SDK if possible:…
  • The iOS Core SDK is just a wrapper that provides functions for accessing the Dropbox Core API. If you need to run tasks in the background, you can do so in your app, and utilize the SDK to make the API calls. (The official Dropbox for iOS app does use the SDK and implements background functionality as necessary like this.)
  • The iOS Core SDK itself doesn't handle running in the background, so you'll need to implement that in your app if you need it. You'll want to refer to Apple's iOS documentation for managing background tasks:…
  • Yes, you can add the source directly (it's included in the download) and make whatever changes you need.
  • Are you using the iOS Core SDK? This field isn't currently implemented in that unfortunately, but I'll be sure to pass this along as a request. Note that the iOS Core SDK is open source though, so you can modify it if/as desired.
  • It sounds like you're looking for the modifier field returned by /metadata: https://www.dropbox.com/developers/core/docs#metadata