Comments
-
Thanks, I am referring to that 'path' variable you're passing in to files_upload. Can you share the actual value in 'path' after that 'format' call? I.e., "print(path)" just before you call files_upload.
-
Thanks! I see you're getting a 'malformed_path' error. That should indicate that the path you're giving for the upload isn't in a valid format. What value are you supplying as the 'path' parameter (i.e., the second parameter on files_upload)?
-
Nothing in the code you've provided so far looks problematic. Unfortunately Cordova isn't officially supported by Dropbox though, so I'm afraid I don't have experience using it. Can you share a complete sample including all of the code necessary so we can reproduce this?
-
It looks like the output you shared here is cut off. There should be more after "UploadWriteFailed". Can you share the rest of that so we can take a look? Thanks in advance!
-
No, the Dropbox API only supports the code and implicit grants.
-
That occurs automatically as part of the new Dropbox extensions flow (which is distinct from the public Dropbox API).
-
It looks like you're referring to the notifications that occur as part of the flows from the new Dropbox extensions. This isn't something you can configure for uploaded files in general.
-
Regardless of how your client/server is set up, the end-user will need to be sent through the Dropbox OAuth app authorization flow to authorize the app to access their account. This only needs to be done once per user. Once you have the access token for that user, you supply it in the "Authorization" header as "Bearer…
-
Thanks. That does look valid. I also just tried it in the JavaScript SDK using your code and it worked as expected for me. (It failed with a 401 Unauthorized; the malformed check occurs first, so it would fail with the malformed error even if the token is revoked.) Just to check, can you make sure you're not actually…
-
[Cross-linking for reference: https://github.com/dropbox/dropbox-sdk-java/issues/230 ] No, the Dropbox API doesn't offer a way to set notifications for uploads from the API, but I'll pass this along as a feature request.
-
In order to get an access token for a user, your app must send them through the OAuth app authorization flow. Your app should never request or handle the user's actual Dropbox credentials (username/password). The Dropbox API does not offer a way for your app to get an access token directly from their credentials or an app…
-
The /2/sharing/list_folders[/continue] endpoints will return the list of shared folders themselves. To list the actual contents of any particular folder(s), you should use /2/files/list_folder[/continue]. I recommend reading the Content Access Guide for more information.
-
Yes, by file activity I am referring to any file changes, such as upload, move, delete, etc. To clarify, do you still get the 504 error when using a limit of 1? That is the lowest possible value for that. And just for reference, did you try using recursive=false, and if so, did that eliminate the 504 issue?
-
No, unfortunately Dropbox doesn't offer anything quite like that, but I'll pass this along as a feature request.
-
You mentioned you checked in LogCat on the Android side, but did you also add some logging to check on the JavaScript side? I recommend doing so if you haven't. And then when you do inspect it in JavaScript, does it have the same format as the sample I shared in my previous post?
-
I see, thanks for clarifying, No, unfortunately there isn't a way to download multiple specific files like this at once, but I'll pass this along as a feature request.
-
I'm not sure I understand what you mean when you say you want "to create a shared folder with different paths". Can you elaborate? In any case, if you want to download specific files using the API, you should call /2/files/download once per file. You should specify the path of the desired file in the 'path' parameter. (Or,…
-
SwiftyDropbox has been updated for Swift 4 as of v5.0.0.
-
SwiftyDropbox has been updated for Swift 4 as of v5.0.0.
-
[Cross-linking for reference: https://stackoverflow.com/questions/53699757/dropbox-android-sdk-auth-access-token-malformed-when-use-in-dropbox-js-sdk ] Regardless of where/how you got a Dropbox API OAuth 2 access token, you should be able to use it to make Dropbox API v2 calls from any platform. For instance, a Dropbox API…
-
Thanks for the report. This sort of error can occur when these operations take a long time due to a large amount of file activity in the affected account (even if the total number of files at any given time is relatively small). We'll look into it, but there are a few potential workarounds: 1) Use a smaller 'limit'…
-
Dropbox does offer an API you can use for listing, uploading, and downloading files, among other operations. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here: https://www.dropbox.com/developers For Python in particular, we recommend using the…
-
That's not an error message from Dropbox itself. It looks like it's coming from whatever HTTPS client you're using. It seems to be indicating that you're attempting to use a value not allowed in HTTP headers. Looking at the string you provided, it's probably because you're using the non-ASCII characters “ and ”. Try using…
-
It sounds like you're trying to connect an app made by a third party developer. They will need to "apply for production" on the app before you can connect to it. You do not need to register your own API app and apply for production yourself. You should contact the developer of the app and request that they do so.
-
Thanks for following up with that. Yes, that would be the way to manually figure this out using the API. Apologies there isn't a more direct way of doing that!
-
Once you share the folder from the originating account using sharing_add_folder_member, you need to "mount" the shared folder in the recipient's account before it would get listed for them. You can do so using sharing_mount_folder. (This is effectively like them "accepting" the invite in Dropbox.) Note that you do need an…
-
The Dropbox Chooser is for having the user select file(s) from their Dropbox accounts to share to your app. It doesn't support choosing the user's entire root/home folder. If you want to save files from your app to users' Dropbox accounts, you should use the Dropbox Saver instead; with that, users can save the supplied…
-
Apologies for the confusion. It looks like the SDK isn't formatting the replacement (non-deprecated) method name in these messages properly. I'll ask the team to get that fixed up. To confirm though, yes, you should use createFolderV2 instead of createFolder, and likewise, deleteV2 instead of delete_.
-
I'm sorry to hear about the difficulty here. The method definitions can change across SDK versions as options are added. You can always find the latest definitions for the file routes in the DBFILESUserAuthRoutes documentation here:…
-
@"Bob S.15" I see you opened a new thread for this, so I'll follow up there: https://www.dropboxforum.com/t5/API-Support-Feedback/uploadURL-unrecognized-selector/m-p/316559#M18784