Comments
-
@"elsigh" wrote:does that cover the folder being polled? e.g. if I'm polling a folder A and a user goes and renames folder A to folder B I would catch that somewhere? Yes, if you listFolder for a path a particular folder and are polling using the returned cursor, you'll get `changes: true` if/when that folder itself is…
-
Thanks for sharing that. That is the error message from the Dropbox API. (Since it's an error about the malformed request, it is just text and not JSON, and so json_decode can't read it. You can check the response's 'Content-Type' to check this programmatically.) Anyway, the error message is indicating that the call failed…
-
@"Rohan87" wrote: Question: if the app is created for developers account and anyone accessing this app via their personal dropbox account, where will the docs save: in the app folder of my account or the client's account through which they authenticate? Dropbox API calls are made by using OAuth 2 access tokens,…
-
Can you clarify what you mean when you say you "lost that one"? Did you accidentally delete the app itself, or lose access to an entire account, etc.? For instance, if both app folders are in the same account and you still have access to the account, the easiest thing would be to manually move or copy the contents from one…
-
Dropbox doesn't offer actual templating for files/folders, but you can use /2/files/copy_v2 to make copies of any file or folder. Likewise, you can move items, e.g., from a shared folder to a team folder, or whatever you need, using /2/files/move_v2. By the way, those are links to the documentation for the HTTPS endpoints…
-
What's the value of $response2 itself, before you try to json_decode it? It's not guarantee to be JSON, e.g., if the called failed. If the call failed, the response body would contain an error. The error could be plain text, not JSON. You should always check the status code to see if the call succeeded or failed, and the…
-
@"TobiasR" Thanks for the report! We'll look into it.
-
It sounds like you're referring to calculating the "content_hash" value for a file in Dropbox as returned by the Dropbox API. You can find documentation and example code for this on the Content Hash page. In order to calculate the value correctly, you need to follow the instructions there exactly. That includes always…
-
I'm glad to hear you already got this working. You have the right idea in that you can call files_list_folder to list the contents of a folder, and then check the Metadata.path_lower (or Metadata.name) for the returned entries to see if the file extension is one you're interested in. Note though that you should also…
-
@"elsigh" Renaming a file or folder will be reflected by listFolder/listFolderContinue as a deletion of the item at the original path, and then an addition of the item at the new path. The file ID doesn't change when renaming an item in Dropbox though, so tracking that value is the best what to correlate these.
-
Thanks! We're looking into it. I'll follow up here once I have an update on this.
-
@"redm" Thanks for the report! I see your support ticket was received. We'll look into it.
-
I'm afraid there isn't a way to speed up these calls unfortunately, but I'll pass this along as a feature request. I can't promise if or when that might be improved on though.
-
I'm glad to hear that works well. The chunk size is how much data to read from the Dropbox API and then write to the local file at a time. I used 4 MB in this sample, but you can change that as desired, with the constraint being how much memory you can use. I'm not sure why that link got broken again, but I fixed it again…
-
Apologies, I had the wrong link in that post. I just fixed it. It should be this post. Anyway, it looks like the issue is that you're running out of memory when downloading the file, since you're accessing the whole thing, and the file is very large. You can read off the download result in pieces like this: with…
-
In Python, a MemoryError is "Raised when an operation runs out of memory". That certainly seems possible here given the file sizes you mentioned. This new line of code seems to reference several things not included in the original code you shared, and doesn't seem to mention Dropbox. Is this new code of yours, or is it…
-
@"Dennyw" I'm afraid I don't have an update on this. The request has been shared with the team, but it looks like there still aren't plans for work on this.
-
It looks like you may be silently dropping exceptions, based on this code: except: continue Add some error handling there to see what may be going wrong with writing the file. At least something like: except Exception as e: print(e) continue
-
Dropbox API v2 parameter names are case-sensitive. The parameter you're trying to use on /2/files/list_folder is named "path", so you'll need to specify "path" instead of "Path".
-
@"Traye1" I've redacted it from your post, but for future reference, please do not post or share your access token, for your security. Anyway, the specific request IDs would be ideal, but I'll try to look this up without them. I'll let you know when I have an update on this.
-
Thanks for the report! We're aware of this issue and are looking into how to solve it. (We may offer a new method for cleaning up the Embedder after unmounting, or possibly handle this automatically, if possible.) I'll follow up here once I have an update on this.
-
Yes, using /2/files/list_folder[/continue] is the right way to list the files in an account. To list every file, you would set the 'path' parameter to the empty string "" (not "/"), and set 'recursive' to true. The error you're getting indicates that the call failed because the HTTPS request body was empty, instead of…
-
Thanks for the additional information! I still can't say off hand exactly what the issue may be, so I recommend starting with the posts linked in my previous comment.
-
@"Shanness" I still don't have an official update on this unfortunately. (For reference, it looks like this can occur due to some implementation details on the backend of how account migrations work with respect to Paper docs. That is, during the migration some extraneous doc IDs may be left over, but these don't actually…
-
The /2/file_requests/list_v2 endpoint is for listing 'file requests', not actual files. (A "file request" is a way to receive files from other people.) To list files, you should instead use /2/files/list_folder[/continue].
-
A 'path/conflict/folder' error like this indicates that the upload failed because there is already a folder at the specified path (not a file). The "overwrite" mode will only overwrite files, not folders. When uploading a file, e.g., using files_upload, you need to specify the whole path where you want to put the uploaded…
-
Are you using the same version of Visual Studio and same project in both the developer machine and virtual machine? Given that this only happens inside the virtual machine, it sounds like there's an issue with the development environment in that virtual machine, in which case we may not be able to offer much support, as…
-
Thanks for the information. It sounds like something during the processing of removing the member is taking a long time on the Dropbox server, and eventually timing out server-side. Would you be able to share the response headers though? In particular, a few sample 'X-Dropbox-Request-Id' values would be helpful in tracking…
-
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 example, to upload files, you can use /2/files/upload:…
-
File events are not available for all Dropbox Business plans. Please refer to the /2/team_log/get_events description for more information on this.