You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
API
5721 TopicsAPI 'Connection Aborted' Error
Hello! I'm downloading files from an App Folder. I am downloading each one by one, totaling over 3000 files. I left the program to run and after 201 requests I got the error pasted below. I don't have a VPN or anything that would change my wifi connection as far as I know. Here is the code I am using: print("Initializing Dropbox API...") dbx = dropbox.Dropbox(AUTHORIZATION_TOKEN) topn = filenames[:len(filenames)] for val in topn: filepath = val #download a file to the local machine with open("/Users/<PATH>/dataimport.csv.gz", "wb") as f: metadata, res = dbx.files_download(path=filepath) f.write(res.content) print("download complete") The error: RemoteDisconnected Traceback (most recent call last) File /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/connectionpool.py:789, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw) 788 # Make the request on the HTTPConnection object --> 789 response = self._make_request( 790 conn, 791 method, 792 url, 793 timeout=timeout_obj, 794 body=body, 795 headers=headers, 796 chunked=chunked, 797 retries=retries, 798 response_conn=response_conn, 799 preload_content=preload_content, 800 decode_content=decode_content, 801 **response_kw, 802 ) 804 # Everything went great! File /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/connectionpool.py:536, in HTTPConnectionPool._make_request(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length) 535 try: --> 536 response = conn.getresponse() 537 except (BaseSSLError, OSError) as e: ... 684 except MaxRetryError as e: 685 if isinstance(e.reason, ConnectTimeoutError): 686 # TODO: Remove this in 3.0.0: see #2811 ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))35Views0likes1CommentAPI Error "path/not_found" when creating shared_link
When interacting with the API, I get a path/not_found error. This happens when I upload a file to dropbox using the path /2/files/upload. After that, I create a link to the file using the path /2/sharing/create_shared_link and specify the path_display received after uploading the file. The error occurs very rarely, but it does not allow you to get a link. What could be the problem?39Views0likes1Commentget_shared_link_metadata API problem with the new '/scl' folder links.
Hello, I thinkget_shared_link_metadata API has a bug with the new"/scl" links. When I send it a link to a shared folder and path to a file inside it: // https://api.dropboxapi.com/2/sharing/get_shared_link_metadata {path: "/001 (2).zip", url: "https://www.dropbox.com/scl/fo/ppu9pgy84/h?rlkey=90bu"} The response is: { ".tag": "file", "url": "https://www.dropbox.com/scl/fo/ppu9pgy84/h?rlkey=90bu&dl=0", "id": "id:2UW_T...", "name": "001 (2).zip", } In the past, the returned "url" was direct to the file, but now it's just the same folder url with"&dl=0". I need the direct link. later I need to convert it to a direct download link to the file. Please help.1.2KViews1like10CommentsDropbox refuses to connect when using embedder
When i try to use the embedder in an iframe, it shows that dropbox.com refused to connect. I made sure that i have added localhost in chooser/saver/embedder domain section in the app console, similar posts seem to have this as a solution but it does not work for me, any idea why and how to fix it?457Views0likes2CommentsAPI Upload .HEIC and convert to JPG
I am using the API to upload images and make them public. I get the public link back and embed in my application. ALL GOOD. Now I am looking to allow .HEIC uploads. I don't see anything in the API to cause the conversion. So, I put automation on my parent folder and that seems to create another duplicate photo converted to JPG. At that point I assume I have lost the public link and I have duplicate files. I am looking for any pointers here..... thanks in advance.472Views0likes7CommentsInvalid Folder Name with Team API
I am trying to create folders using the api in a team folder like this: // Get Namespace ID const dbx = new Dropbox({ accessToken: process.env.DROPBOX_ACCESS_TOKEN }); const baseFolder = "/Data Transfers"; const customerFolder = `${baseFolder}/${folder_name}`; const dataFolder = `${customerFolder}/data`; // Create a folder in dropbox await step.run('create-customer-folder', async () => { console.log(customerFolder); await dbx.teamTeamFolderCreate({ name: customerFolder }); await dbx.filesCreateFolderV2({ path: dataFolder }); }); This should be just to create a folder under our team/Data Transfers/TestFolder but it is giving me an Invalid Folder name, what am I doing wrong? I am just getting started with the API and I am completely lost.Zapier - 409 error path/not found
Hello everyone! I'm trying to get the meta data for a file so I can access the "shared_folder_id" and then add a member (or group if possible) to that folder. It's on a team folder. I'm using Zapier as I want this to be automated upon a trigger. The issue I get is during a Post request to get_metadata, the path cannot be found (error 409) I first find a folder, which returns correctly. Then I run a custom request (http) for: https://api.dropboxapi.com/2/files/get_metadata Data: { "include_deleted": false, "include_has_explicit_shared_members": false, "include_media_info": false, "path": "<path from the previous find folder path in zap>" } I've also verified this folder path does exist (I can see it, and it's all spelt correctly). This leads me to believe it's a access or permission error, but I'm not confident. Headers: AuthorizationBearer <my actual token id> Content-Typeapplication/json Dropbox-API-Select-Admin.dbmid:<my actual token id for myself as an admin user> The folder I'm accessing has myself listed as access, and I'm also included in a group that has access. I've selected all permissions on my app to write/edit everything, generated a new auth token after saving, and I still have issues. Any help is much appreciated. I'm happy to provide any additional information as well. Thanks in advance!Solved1.7KViews0likes12CommentsKnow uploaded by user of a file and folder
Hi, I am developing an application where I need to know the user who uploaded particular file. I checked that dropbox UI has that information available and it fetches it from https://www.dropbox.com/2/files/get_upload_infoendpoint. This endpoint is not listed in dropbox API documentation. Also, response returned by it only contains displayName and uploadTime of the file which is not sufficient to uniquely identify the user. Is there any better API available to know uploaded by user of a file and folder?451Views1like6Comments