Comments
-
From https://www.dropbox.com/developers-v1/core/docs#chunked-upload: "Chunks can be any size up to 150 MB."
-
I recommend using https://dropbox.github.io/dropbox-sdk-php/api-docs/v1.1.x/class-Dropbox.Client.html#_uploadFileChunked. You can specify the chunk size you want there.
-
That would depend on the available bandwidth between your servers and Dropbox's servers, the chunk size you choose, etc. I can't make a guess, but you might try uploading a smaller file and then multiplying.
-
In any case, the SDK is here: https://www.dropbox.com/developers-v1/core/sdks/php.
-
It's just the Dropbox PHP SDK. Is that not what you're already using?
-
I don't know what "core files" means.
-
I suppose you could download via https://github.com/dropbox/dropbox-sdk-php/tree/gh-pages ("Download ZIP" button) if you needed the documentation offline.
-
As Greg said, we don't have an example that uses that method, but we'll be happy to help if you run into any issues once you give it a try.
-
It's for v1 of the API.
-
No, there's no API method to download multiple files in a single request. What do you mean when you say "it stops"? Is there some sort of error? The first line of this code seems wrong... has_more means there will be more entries if you call delta again. I also don't see the loop where you're calling delta…
-
See https://www.dropbox.com/developers/documentation/http#documentation-files-list_folder-continue. One of the examples is a reset. In v2, that's indicated via an error.
-
c. chunta, correct, access tokens don't expire. You need to store the access token yourself to keep using it. There's no way to ask Dropbox for previous access tokens, but you can always get a new access token by taking a user through the OAuth flow.
-
I think you want this: $filename = 'Glide1.jpeg'; $input = '/Scouts/Images/'.$filename; $output = '/var/www/vhosts/MY/DOMAIN/images/dropbox/'.$filename; $f = fopen($output, "w+b"); // write to $output $fileImage = $dbxClient->getFile($input, $f); fclose($f);
-
Cross-linking with http://stackoverflow.com/questions/33233988/select-files-dialog-does-not-appear-for-firefox-only-when-using-dropbox-api-mf-d on Stack Overflow.
-
I'm having trouble following this thread. Is your issue resolved? Or are you still having a problem?
-
Are you by any chance making an AJAX request and using Firefox? There seems to be a known issue with Firefox where it adds the "charset=UTF-8".
-
Great! Thanks for following up with what you found.
-
I'm not aware of a way to work around this issue. If we're blocked from communicating between the two browser windows, then the Chooser can't function.
-
Try just this instead: from dropbox.client import DropboxClientaccess_token = 'xxxxxxx' # <-- your generated access tokenclient = DropboxClient(access_token) It looks like what you're trying to do is use your access token as the "authorization code" for the OAuth flow, but that's not right. The result of the OAuth flow is…
-
The expiration time is always be 4 hours. There's currently no way to influence the expiration time. Why do you want to do that? Would you want to increase it or decrease it?
-
SwiftyDropbox is actually currently broken... we just yesterday made some changes to the API and will need to publish an updated SDK (hopefully tomorrow). So stay tuned and watch the blog/GitHub for an updated SDK.
-
There's nothing like rev=latest, so you should indeed loop in this case. That's how, for example, the Python SDK works.
-
I published https://blogs.dropbox.com/developers/2014/04/dropbox-authorization-in-a-windows-store-app/ last year. It uses OAuth 2, though.
-
Would you please share your updated code? If you have two apps and one is working, I would suggest comparing the two to see what differences there are.
-
I see two immediate issues: * Your Authorization header on the call to /access_token seems to be missing the required parameter oauth_token. You seem to have it in the URL instead, which I don't think works. (I don't think you can mix parameters in the query string and in the Authorization header.) * You're escaping the…
-
What's the exact URL you're hitting when you get the 401? (Please X out any secrets in the URL.) Note that the app key in your code snippet below is for a disabled app. (That would certainly cause a 401.) If you can get the actual body for the 401 response, that would help.
-
Please share your code: specifically the part where you make the call to exchange the request token for an access token. From the terminology "request token," it sounds like maybe you're using OAuth 1? Are you using a library for OAuth, or are you writing your own code? Which signing method are you using? (HMAC-SHA1 or…
-
I think you're on the right track. You should call loadMetadata on the path you're interested in, and then the loadMetadataFailedWithError method on your delegate should be invoked with the error that the path doesn't exist. See https://www.dropbox.com/developers/core/start/ios#listing.
-
This isn't something we're ready to open up to other partners right now, but we're tracking this as a feature request.
-
Sorry, but we can't provide support for third-party apps. If the developer of the 2do app needs help with something, please have them contact us directly. Thank you!