Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
upload
21 TopicsDropbox embedder
Hi, i'm using the new dropbox embedder. I've made the folder as shared folder. But inside the folders, I have also sub folders. The issue is the sub folders cannot be accessed. How to fix this ? Error message: Owner hasn’t granted you access to this linkSolved2.4KViews1like10CommentsUploading files to a shared folder through API
Hello, How can I specify a shared folder path while uploading a file through API. When I pass my path as "/test/version1", it is by default going to my home folder of dropbox and creating the path there. So where can I specify my shared folder name (the folder shared by others). Best Regards, Dileep2.1KViews0likes2CommentsContinuous timeout errors for a few minutes when uploading files
I have timeouts which may be related to uploading files using upload sessions. For instance after uploading a 200MB file I get a read operation timeout when trying to list shared links to that file. I have had the same issue with a 11MB file, also uploaded with sessions. After that timeout, I attempt to upload again and have a write timeout. All the time I uninterrupted internet connectivity. After some time the problem clears. Read timeout when listing shared links: ---------------------------------------------------- Uploading chunk... 92.7314361944079% Uploading chunk... 94.79213477650586% Uploading chunk... 96.8528333586038% Uploading chunk... 98.91353194070176% File uploaded successfully to test/attachments_20240716_124331.zip. Checking if shared link with password already exists... [ERROR] [1721126840.768204]: Error sending notification: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 536, in _make_request response = conn.getresponse() File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 464, in getresponse httplib_response = super().getresponse() File "/usr/lib/python3.8/http/client.py", line 1348, in getresponse response.begin() File "/usr/lib/python3.8/http/client.py", line 316, in begin version, status, reason = self._read_status() File "/usr/lib/python3.8/http/client.py", line 277, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/lib/python3.8/socket.py", line 669, in readinto return self._sock.recv_into(b) File "/usr/lib/python3.8/ssl.py", line 1241, in recv_into return self.read(nbytes, buffer) File "/usr/lib/python3.8/ssl.py", line 1099, in read return self._sslobj.read(len, buffer) socket.timeout: The read operation timed out The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/requests/adapters.py", line 667, in send resp = conn.urlopen( File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 843, in urlopen retries = retries.increment( File "/usr/local/lib/python3.8/dist-packages/urllib3/util/retry.py", line 474, in increment raise reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.8/dist-packages/urllib3/util/util.py", line 39, in reraise raise value File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 789, in urlopen response = self._make_request( File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 538, in _make_request self._raise_timeout(err=e, url=url, timeout_value=read_timeout) File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 369, in _raise_timeout raise ReadTimeoutError( urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.dropboxapi.com', port=443): Read timed out. (read timeout=100) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/deployed_ws/ros1/key_external_notifications/lib/python3/dist-packages/key_external_notifications/dropbox_api.py", line 117, in upload_and_share shared_link = create_shared_link_with_password( File "/deployed_ws/ros1/key_external_notifications/lib/python3/dist-packages/key_external_notifications/dropbox_api.py", line 97, in create_shared_link_with_password links = dbx.sharing_list_shared_links(file_name, direct_only=True) File "/usr/lib/python3/dist-packages/dropbox/base.py", line 5190, in sharing_list_shared_links r = self.request( File "/usr/lib/python3/dist-packages/dropbox/dropbox_client.py", line 326, in request res = self.request_json_string_with_retry(host, File "/usr/lib/python3/dist-packages/dropbox/dropbox_client.py", line 476, in request_json_string_with_retry return self.request_json_string(host, File "/usr/lib/python3/dist-packages/dropbox/dropbox_client.py", line 589, in request_json_string r = self._session.post(url, File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 637, in post return self.request("POST", url, data=data, json=json, **kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/adapters.py", line 713, in send raise ReadTimeout(e, request=request) requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.dropboxapi.com', port=443): Read timed out. (read timeout=100) --------------------------------1.3KViews0likes8CommentsConnecting a Seeed ESP32C3 to DropBox [Arduino]
I am trying to figure out how to upload a file on an ESP32C3 [which uses the Arduino IDE] to Dropbox. I am using the generic HTTP API as a basis for doing so. I am effectively converting "curl" commands to Arduino code. But sods law, I was stopped at the last post. I have list files working, and I have download files working. But uploading, the most important task, is giving me some sort of generic error. I am trying to convert this line. curl -X POST https://content.dropboxapi.com/2/files/upload \ --header "Authorization: Bearer sl.B9dZuDVGsJYG3iabZAIXdK4mzhVom0gdruvL3rHuc4RuxE_BnDlVtjc1lGrrezNGrPqmVNDMXJ5ssKPptz5JNk7Q_MBYZ9pbLdPxmr85Nk3TV0umh9OlivoAjynA9VC6LHrpib2A__8vt1lG6wfST4E" \ --header "Dropbox-API-Arg: {\"autorename\":false,\"mode\":\"add\",\"mute\":false,\"path\":\"/Homework/math/NewImage.jpg\",\"strict_conflict\":false}" \ --header "Content-Type: application/octet-stream" \ --data-binary _5050.jpg I wrote this in code. The message is generated by the headers I am sending; I don't get to the actual upload of the file, although I am flying by the seat of my pants here. Has anybody done this? Is there something obviously wrong here? I get this message when I run it. The code 400 means bad request? so one that is syntatically wrong. <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Dropbox - 400</title> <link href="https://cfl.dropboxstatic.com/static/metaserver/static/css/error.css" rel="stylesheet" type="text/css"/> <link rel="shortcut icon" href="https://cfl.dropboxstatic.com/static/images/favicon.ico"/> </head> <body> <div class="figure"> <img src="https://assets.dropbox.com/www/en-us/illustrations/spot/target-miss.svg" alt="Error: 400"/> </div> <div id="errorbox"> <h1>Error (400)</h1>Something went wrong. Don't worry, your files are still safe and the Dropbox team has been notified. Check out our <a href="https://status.dropbox.com">Status Page</a> to see if there is a known incident, our <a href="https://www.dropbox.com/help">Help Center</a> and <a href="https://forums.dropbox.com">forums</a> for help, or head back to <a href="https://www.dropbox.com/home">home</a>. </div> </body> </html>Solved1.2KViews0likes9CommentsError 500 finishing huge file upload (300GiB+)
Hello, When a huge file (300GiB+) is uploaded using the upload_session API an "Error 500 Internal Server Error" is received when the last part is uploaded (/upload_session/append with close set). I retry the request but an Error 500 raises again and again. Sometimes, after more than 1 hour retrying the file uploads successfully. I am using session_type sequential. The same code for smaller files (10GiB) works perfectly. Are you aware of the problem? Is there any workaround?998Views0likes7CommentsDropbox upload on a device only with max 600kb/s. (Upload)
Hello everyone, We are experiencing a small problem with uploading to Dropbox via API on one of our servers since Saturday. The server's upload speed reaches a maximum of 600 kb/s using Rclone and Duplicati, but mostly stays around 200 kb/s. We have been using Dropbox for several months without any such issues before. We have tested the upload speed on multiple devices, and it seems to be limited to this particular server. We have already attempted to resolve the issue by restarting the server, but unfortunately, it did not help. Does anyone have any ideas or suggestions to address this problem? Download speed is normal and works fine!Solved920Views0likes4CommentsChatgpt Actions to interact with Dropbox
Hello, i am trying to use chatgpt actions to get and put files to my dropbox account. in below spec file, i am just trying to download /transactions.csv from root folder of my dropbox. with curl command, it works perfectly fine but using chatgpt throws error. Could you please confirm if there’s an issue with my implementation or if additional headers or configurations are required to prevent the request body is supposed to be empty error? i get below response from API: { "response_data": "Error in call to API function \"files/download\": The request body is supposed to be empty, but it isn't; got \"{}\"", "status_code": 400, "action_id": "g-d9e5d6855647322df1b771ba6c20113613691c5e" } Below is my chatgpt spec file: openapi: 3.1.0 info: title: Dropbox File Management API version: 1.0.0 servers: - url: https://content.dropboxapi.com/2 paths: /files/download: post: summary: Download a file from Dropbox description: Downloads the file `transactions.csv` from Dropbox. operationId: downloadFile parameters: - name: Dropbox-API-Arg in: header required: true description: JSON string specifying the path to the file to be downloaded. schema: type: string example: '{"path": "/transactions.csv"}' responses: '200': description: File downloaded successfully. content: application/octet-stream: schema: type: string format: binary '401': description: Unauthorized. '404': description: File not found. '500': description: Internal server error. security: - bearerAuth: [] components: securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: JWT schemas: {}600Views0likes1CommentUpload multiple files in session
Backstory I have a bunch of small PDFs (18 kb each). filesUpload worked until I understood that a `429` is quite usual. Researched and found the batch endpoints. I wanted to use `/upload_session/start_batch`, `/upload_session/append_batch` & `/upload_session/finish_batch` to upload all files in a session. For stability I used the JS SDK.....but there is no method for `/upload_session/append_batch` 🧐 I created my own method and used the endpoint directly.....worked. But I got errors in the `finish_batch` Then I thought: If the file size off all PDFs is so small, maybe I can upload them directly in the `start` without any `append` and without batch session. I thought, I can use the one `session_id` returned by the `filesUploadSessionStart` method and then go with `filesUploadSessionFinishBatchV2` and split the uploaded file into the original PDFs. const allContent = concatArrayBuffers(...files.map(({ contents }) => contents)); const startResponse = await dbx.filesUploadSessionStart({ close: true, contents: allContent, }); const batchData = files.reduce( (acc, cur) => { acc.entries.push({ cursor: { session_id: startResponse.result.session_id, offset: acc.offset, }, commit: { autorename: true, mode: "add", mute: false, path: cur.path, }, }); acc.offset += cur.contents.byteLength; return acc; }, { offset: 0, entries: [], } ).entries; await dbx.filesUploadSessionFinishBatchV2({ entries: batchData.map(({ commit, cursor }) => ({ commit, cursor })), }); This is the code. Questions What is a session exactly? What is an entry exactly? Can I access one session from multiple entries in a `filesUploadSessionFinishBatchV2`? Where am I going wrong?276Views0likes4Comments