Comments
-
@"toki4004" wrote:..., and now I want to view a folder list with items + see their properties. I get this error: "Error in call to API function "files/list_folder": request body: include_property_groups.filter_some: expected list, got string". Here is my code below. What format is expecting for "include_property_group"?…
-
@"toki4004" wrote:I created a template in my app and got a response with a template id. I can also make a call in my app "get_for_user" and view the schema for the new template. BUT when I go to your API explorer, I get nothing back ... Yes, of course @"toki4004". Every template is valid for application-user pair (neither…
-
@"Rephoto" wrote:... I have done uploading small sized files. And I continue to upload files larger than 150MB in size. ... The only difference when you upload larger files, compared to small files, is that you will need to slice file to pieces and upload every piece to its corresponding place in the file session (not on…
-
Hi @"SandeepCNT", Is your account business (i.e. group) or personal? Keep in mind the permanently deletions is unsupported for personal account and business one will be expected. Hope this helps.
-
Do you understand that on that place has to be the offset in the file in Dropbox session where ongoing upload would go to? In this context, what would be between offset 0 up to memStream.Length? 🤔 According your code, there is nothing. 😜 Read the documentation with a bit more care!
-
Also don't nest lists one in other directly..
-
@"toki4004", did you prototype your calls? As seems not yet... Yes, property group is list/array. The elements of this list are dicts. The fields of each element is list also. Take a bit more care. 🙋
-
You should debug yourself connection breaks, but there are other... let say strange things in your code. You're starting upload file content at expected file end instead of the beginning. Why? By the way this is error since the file content cannot have "gaps". Even without connection break, you would receive error denoting…
-
Hm... Ok right.
-
Create and upload sessions (and close it) for all files that are less than 150MB in parallel and finally finish all them in a single call. 'too_many_write_operations' is sensitive to number of finishes. When you have many finishes it becomes likely to appears such a error. When you combine them in single call they become…
-
If you want to just upload a single small file and that's all, using UploadAsync is the bast. In such a way you create session, upload and close the content and finish the upload - all in this single call. Here is no any optimization. In your last code snippet you make it rather slower - 2 calls instead of one. If you want…
-
@"Rephoto", Why are you trying to upload the same stream twice? 🤔 Previously you skipped upload at all, now just opposite! 🙂 Something else: Why you skipped finishing the all sessions in batch? In such a way, there is no optimization! Even more - you can do the same with a single call. 😉
-
@"Rephoto" wrote:@"Здравко" Oh, So I'm missing the file upload part. But I don't know which one to use? In general, you should use UploadSessionAppendV2Async method to upload stream' data. In such case you can combine the batch with big files upload either sequential or concurrent. When you know that only small files are…
-
Hi @"toki4004", It's a good idea to prototype API call when you are not sure about something. 😉 So you can easy find out all differences and what's wrong. In particular (for /2/files/upload) you can take a look here. Click on "Show Code" to see how the call look like. Most valuable for you may be the "HTTP request" form of…
-
@"Rephoto" wrote:@"Здравко"Hi, I tried again with the code below to upload small files (e.g. 10, 20MB). But the result just failed. :)) ... Hm..🤔 Probably I miss something, but where in your code you did upload files actually? 🧐 I cannot figure out where is this place/codeline. Please point out where you pass your files…
-
Hi @"leojtonozzi", Recent versions support Python 3 already, so neither your issue nor the solution can be the same. You can try describe what exactly you are receiving to becomes a bit more clear what's wrong. Something else: The thread you're looking on is pretty old! There are described practices that are deprecated…
-
@"Rephoto", What are you doing? Batch is used when you want to upload multiple files at once, not to split one file upload and do pieces upload simultaneous!!! Use concurrent upload session to do that.
-
@"Rephoto", Start concurrent upload session and upload every peace of data in its own context (so no any reference gets lost). 😉 Good luck.
-
Hi @"Rephoto", When you're starting upload session, you use the default type - sequential session, but when actual upload gets on you're trying concurrent upload. Decide what you want actually. Hope this gives direction.
-
Yes, that too @"manishkanwaria" - good note. 🙂 Just to avoid further confusions: path separator for all paths is single forward slash and all paths always start with a slash (again single slash). Since your application is 'App folder' type, all paths you're going to pass to any API calls have to be rooted on the…
-
Hm.. 🤔 Did you set single or double slashes when you tried for very first time and it didn't worked? 🧐🙂 Hope this reveals the 'mystery'. 😉
-
Hi @"manishkanwaria", You may try with: var response = await dbx.Files.DownloadAsync("/VID20230902073536.mp4") Does it works? 🤔😉 Hope this helps.
-
@"Gags" wrote:... As I understand, I should set RootNameSpace everywhere in my Dropbox API calls in my scenario ... It's matter of design decision, not something mandatory. I conditionally proposed it since the description in your OP was sounding so. If I was wrong... finally it's your decision. @"Gags" wrote:... I am…
-
@"Gags" wrote:... Which one is used by default if we don't set WithPathRoot - RootNameSpaceID or HomeNameSpaceID ? ... Hi @"Gags", By default 'HomeNameSpaceID' is in use when nothing set explicitly. @"Gags" wrote:... From what I understand, we need to use HomeNameSpaceID if we need to create files and folders via Dropbox…
-
Hi @"toki4004", To get content of any file, you need to download it, not something else. 🙂 Something more: as seems you're messing 2 different things - file and file request! File request is pseudo object representing your (or your app' user) intention to get file from somebody else, not the file itself. Getting such…
-
@"lwmar" wrote:I cannot see the Dropbox icon on the top of the screen anymore ... Hi @"lwmar", Hm..🤔 It's strange when you had the application ran and displayed its icon it to stops just so, without reason at some point. As seems Dropbox cannot see that you're running graphical environment and gets fall back to console…
-
@"gnet-Jim" wrote:... I see the files in Dropbox on my phone, I'm sharing them to the same folder in Dropbox, without any change to the filename. I would think if that was the issue I'd have to change the names to get them to show up. Not necessary. Most present days phones are able to handle automatic adaptation of such…
-
Hi @"gnet-Jim", Most probably your volunteer uses Windows incompatible symbols into file/folder names and/or incompatible formatting. Unfortunately Windows is very capricious about possible symbols and formatting. Ask she don't to set leading or trailing spaces and not to use symbols that Windows count as special, like…
-
@"baltasarq", Just a note: In your web browser you're receiving authorization code, not access token! They are different things. 😉
-
Hi @"escanzano", You have one error for sure: 'download_path' should point to file where to save downloaded content, not to folder. The actual exception, you got, means that something within the Dropbox path is not correct. A good way to start troubleshooting is to list files from account root up to desired file - folder'…