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
5724 TopicsSlow response using Dropbox for Python
Hello, My python code has been working well for months. Within the past 48 hours, the files_download command in the snippet below (with tokens obfuscated) has started to take about 45 seconds while previously it was instantaneous. It is the last line that is the culprit. import dropbox DROPBOX_APP_KEY = "?????" DROPBOX_APP_SECRET = "?????" DROPBOX_REFRESH_TOKEN = "????" dbx = dropbox.Dropbox(app_key=DROPBOX_APP_KEY, app_secret=DROPBOX_APP_SECRET, oauth2_refresh_token=DROPBOX_REFRESH_TOKEN) metadata, f = dbx.files_download('/alerts.csv') Any suggestions? With thanks, David19Views0likes0Commentsfile upload failed randomly
While uploading the document using the Dropbox API [https://content.dropboxapi.com/2/files/upload], randomly the document gets not uploaded, the file presents with 0 bytes, if i open below, ".pdf files are supported but something went wrong/ dropbox" Why? It occurs randomly, could you please check this from your end? Note: I'm using the Dropbox in Web - Windows (Basic plan)Saver API
I have a website. I want to store files from clients in dropbox servers for security reasons. So, I want to have a Form with some fields and the Saver API button for upload. When my clients use the Save API button and upload a file, will the file reside ( be it in any folder like tmp or format like a name with tmp extension etc)on my web site server and before getting transferred to dropbox servers.44Views0likes3CommentsChecksum, creation date, modification date
I have a couple of use cases when building 3rd party apps, for both personal and business, which as far as I can tell are not possible with the current API capabilities: 1. Checksum - File integrity verification I want to be sure that the file I just downloaded from or uploaded to Dropbox has been transferred correctly. This would be trivial to check if the API exposed a checksum attribute, such as sha1 or md5, that I can compare with my locally computed value. I also want to display this information for the needs of my app. Right now there is no such possibilty 2. Creation date, created by Being able to access the file/folder creation dates certainly gives capabilities that are not possible without it, from simple 'sort by creation date' to more advanced account analytics. This attribute is not exposed at all. 3. Being able to set the modification date and the 'modified by' field If I am migrating data from any other service (either on-premise or cloud) into Dropbox, I want to maintain the original modification dates and the 'modified by' user values (and the equivalent creation fields, and even the past file versions if we take it to the extreme). What happens in such a scenario right now is that all modification dates are set to the date that the migration took place, and the 'modified by' is set to the person that ran the migration (the business admin or the personal account for example). Maintaining this information is crucial and this makes migrating into Dropbox less attractive Have I missed any way that these are already possible, or are there any plans to implement them? Regards, DimitrisSolved4.8KViews0likes6CommentsOTA update fails in CC3200
Hi All, We are using the Dropbox API to do an OTA upgrade. We have a webclient application running on the TI microcontroller CC3200. We are using the Drop Box API from 2017 onwards, and it is working fine. When we tested the OTA functionality yesterday, it was unable to receive the CDN file URL. It is able to receive the file information from Dropbox but is unable to get the temporary link from Dropbox. Do you know what is causing this issue? Is there any recent API upgrade that has failed to respond? Please help us to fix this issue ASAP. TI CC3200 logs: sl_extLib_OtaRun: call OtaClient_ConnectServer OTA server=api.dropbox.com OtaClient_ConnectServer: http_connect_server api.dropbox.com 0 OTA run = 0 sl_extLib_OtaRun: OtaClient_UpdateCheck, vendorStr=Vid01_Pid00_Ver0302100000 OtaClient_UpdateCheck: call http_build_request /1/metadata/auto/ CdnDropbox_SendReqDir: uri=/2/files/list_folder metadata file=/Vid01_Pid00_Ver0302100000/f80_sys_mcuimgA.bin, size=142888 sl_extLib_OtaRun: OtaClient_UpdateCheck, numUpdates=1 0 OTA run = 0 sl_extLib_OtaRun: OtaClient_GetNextUpdate: file=/Vid01_Pid00_Ver0302100000/f80_sys_mcuimgA.bin, size=142888 OtaClient_ResourceMetadata: call http_build_request /1/media/auto OtaClient_ResourceMetadata: file flags=80,metadata flags=80 CdnDropbox_SendReqFileUrl: uri=/2/files/get_temporary_link 0 OTA run = 0 sl_extLib_OtaRun: ResourceMetadata CDN file URL = f= CdnClient_ConnectByUrl: ERROR, http_extract_domain_by_url, status=-1 sl_extLib_OtaRun ERROR: Failed on CdnClient_ConnectByUrl 0 OTA run = -6 OTA run = -6 OTA: Error with OTA server Regards, Sundar11KViews0likes67CommentsDoes Dropbox support OAuth 2.0 Device Authorization Grant?
I'm looking to develop an application utilizing OAuth 2.0 authentication protocol, which I know Dropbox supports. However, the application will be running on a device without a web browser, so the OAuth 2.0 Device Authorization Grant protocol must be followed. I am wanting to know whether Dropbox supports this work flow, and if so where I might find more documentation on the subject (all documentation regarding authentication I've found thus far assumes the presence of a web browser on device). Thanks for the help.Solved1.5KViews0likes5CommentsAPI 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?85Views0likes3CommentsAPI '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'))get_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.3KViews1like10Comments