Comments
-
The official Objective-C SDK for API v2 has been released here: https://github.com/dropbox/dropbox-sdk-obj-c
-
Thanks for clarifying! In that case, the longpoll or webhooks functionality I linked to is the right way to mimic this. (In fact, the Sync/Datastores SDK itself did just use longpolling to find out about changes quickly.) API v2 doesn't have the same sort of model that the Sync/Datastores SDK did though, as you mentioned,…
-
Hi Raheel, for the fist part of your post, it sounds like you're looking for some feedback from other developers in a similar situation, so hopefully any such developers reading can chime in. Regarding the "push" feature of the old Datastore API, do you mean how you would sync changes when/as desired? If you're using files…
-
I believe this is essentially the same issue as the thread here: https://www.dropboxforum.com/hc/en-us/community/posts/205788125-CSharp-SDK-await-dbx-Files-UploadAsync-object-gets-disposed-before-upload
-
Can you put a breakpoint in your catch block and inspect the exception? It should contain more useful information about the issue from the Dropbox API.
-
You can use /sharing/list_folder_members and /sharing/list_folder_members/continue to get information about the members of a shared folder, including who is the owner. I'll send this along as a feature request to return information about the owner directly from /sharing/get_folder_metadata though.
-
The official Objective-C SDK for API v2 has been released here: https://github.com/dropbox/dropbox-sdk-obj-c
-
It sounds like you may be looking for a regex pattern that can be used to identify Dropbox links. I don't believe we have a single such pattern pre-built, but this help article lists official domains and URL patterns: https://www.dropbox.com/help/217#domains
-
I can't speak to the capabilities on the MATLAB side, but Dropbox does offer an API that can be used to upload and download files from any platform that can make HTTPS requests. You can use the Core API: https://www.dropbox.com/developers-v1/core We recommend using one of the official SDKs, if possible. Otherwise, there…
-
So you're saying the code execution doesn't enter the catch block, which should mean the method succeeded? In that case, from your code, it looks like allItems should then be defined containing the information. What do you do with allItems after this code runs?
-
Your code looks fine. What do you mean by "it crashes without any exception"? That shouldn't be possible. It looks like you're storing the exception message but not reading it (string m = e.Message). I recommend adding a breakpoint there to see what the actual API exception is. For example, it's possible newFolderPath is…
-
You're using a URL parameter named "access_token", but per the error message that should instead be named "authorization". (Or, you can use an Authorization header.)
-
This is definitely a little confusing in this case, but isDeleted just tells you if the returned Metadata object is of type DeletedMetdata, and not if the remote file is deleted. The delete method never returns a DeletedMetadata though, so isDeleted won't be true. You should instead use the call successfully completing as…
-
Arooran, I looked into this, and this is the expected behavior. The delete call deletes a file or folder at the specified path. A success response indicates that the item was deleted. The returned metadata will be the metadata for the item that was deleted, but not an "IsDeleted" object (since the deleted version of…
-
Arooran, thanks for the report! We'll look into it.
-
You can now track progress using GetContentAsStreamAsync. E.g., you can do something like: var response = await client.Files.DownloadAsync(path); ulong fileSize = response.Response.Size; const int bufferSize = 1024 * 1024; var buffer = new byte[bufferSize]; using (var stream = await response.GetContentAsStreamAsync()) {…
-
Hi Brandon, it sounds like your question is more about downloading files in general when using the .NET SDK, as opposed to getting progress of a download. Can you open a new thread with the details of any issue(s) you're having so we can help you specifically without spamming Manjit? Thanks in advance!
-
No, unfortunately I don't believe the .NET SDK offers a way to track progress of the download. I'll send this along as a feature request though.
-
The PhotoWatch sample app currently only has SwiftyDropbox 2.0.3 installed. You'd need to do a pod update to get the latest release with the fix.
-
For reference, that issue was fixed in release 3.0.0.
-
Hi Michael, that's a known issue in version 2.0.3. Please use version 2.0.2 for now. You can find more information in this thread: https://www.dropboxforum.com/hc/en-us/community/posts/203941303-Swifty-SDK-Search-API-Error-on-v2-0-3
-
This should be fixed in the latest release. Let us know if you're still seeing any issues.
-
Sorry, no update quite yet. It should be relatively soon though.
-
Will do!
-
Hi Manjit, there are a couple of threads with one of our developers here that should help with this: https://www.dropboxforum.com/hc/en-us/community/posts/204820279-Upload-and-download-large-files…
-
Thanks for the feedback. I don't have an update on this on our side though.
-
John, have you reviewed the information above in this thread, including the sample code helpfully provided by g r.? Have you hit some issue with the technique described?
-
Thanks for putting this together and sharing it! A more direct way to save an access token is to use DropboxAuthManager.storeAccessToken: https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/DropboxAuthManager.html#/s:FC13SwiftyDropbox18DropboxAuthManager16storeAccessTokenFS0_FCS_18DropboxAccessTokenSb
-
What do you need help with specifically? What issues are you seeing?
-
This was discussed earlier in this thread. Please read through it for our recommendation.