Comments
-
@"hashirshabbir" wrote:..., it's possible that there might be a specific issue with this particular file's accessibility or format on the server side. ... No @"hashirshabbir". All files, in perspective of API/SDK, are like "black boxes". The only difference is these "boxes" size. In particular case, the size is too small…
-
You can dump 'response.status' and 'response.headers' (most interesting is "dropbox-api-result" header, if any) to see what's going on (as a first step of course). Add: Why you need to construct new Promise at all?! Why don't you use the 'onload's body to perform rest of the work? 🤷 Would be more simple and stable (last…
-
@"brtdvrs" wrote:when I want to download a json file of 4,7MB the response is empty. ... [Fiddler] ReadResponse() failed: The server did not return a complete response for this request. Server returned 3.261.611 bytes.... Hi @"brtdvrs", Do you understand that you contradict to yourself? It cannot be empty and contain…
-
Hi @"AYP-BOT", Such a message shows that you have destroyed your link somehow. How exactly you transformed it to direct link? Seems like mandatory link parameter 'rlkey' is removed while only 'dl' parameter has to change. Hope this helps.
-
Hi @"karver", You have 2 errors, at least. The first one is obvious - you have pointed something that doesn't exist (likely it's the same as explained before; not mandatory, of course). The other one is the fact that you're trying to download folder content using method suitable for files only! To be able download a folder…
-
As I said before, it's your responsibility to keep all needed information!!! The only work for all those accountId is to be unique and so you be able index whatever you have stored before, nothing more. Of course you can use it whenever applicable. For the test (just to see how it's working) temporary remove all team…
-
@"dsoprea" wrote:... They only work for non-team accounts. Yes, they are designed so. As seems it's difficult for you to adapt it!? 🧐 Try to change the line: for account in json.loads(request.data)['list_folder']['accounts']: ...to something like: teams = json.loads(request.data)['list_folder']['teams']for team in teams:…
-
@"dsoprea" wrote:... This differs from the folder-scoped app events, in that those have an 'accounts' list under the "list_folder" event/directive. ... Hi @"dsoprea", Yes, unfortunately documentation is a pain for Dropbox; and it's not only about API, it's the same for everything. 🤦🤷 Have you seen Dropbox official…
-
@"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.