Comments
-
Yes, you can use the /files/move endpoint to move or rename a file or folder.
-
I'm not sure I understand your question. Can you clarify? Thanks in advance! Also, again (per your previous thread) note that you can't use an "access_token" URL parameter to pass up your access token to API v2. You can only use an "Authorization" header or an "authorization" URL parameter.
-
It looks like you'e trying to call the API HTTPS endpoints directly using a third party HTTP client. As we didn't make the client, we can't help with it specifically, but we can try to offer some guidance on how to use the API. For reference, the documentation for PostAsync indicates that the second parameter is: content…
-
I don't believe iframes support data: URIs as src, so you'd have to host the data at a URL like I mentioned in my last reply. As far as browser support for different file types are concerned, that would depend on the specific file type and browser capabilities, unrelated to Dropbox itself. For example, I don't believe most…
-
The thumbnails and previews endpoints return the raw data for the thumbnail or preview of the requested file, respectively. You'd need to save that data and serve it back however you want. E.g., serve it at a URL to use as the src for your iframe.
-
[Cross-linking for reference: https://stackoverflow.com/questions/33375598/is-the-lenght-of-accesstoken-constant-in-dropbox-authentication ]
-
This isn't currently possible, but I'll send this along as a feature request.
-
Richard's correct, we don't currently offer an FTP interface, but we'll consider this a feature request.
-
That would certainly be unexpected from the metadata call. Are you making any other API calls around the same time? Also, are you sure this only happens when you're making this metadata call? Is it possible the people with the file are (perhaps not intentionally) saving new versions and causing the conflicts, unrelated to…
-
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