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.
APIs
6 TopicsUpload 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?Audit Log API Sorting
Hello, I'm trying to use Dropbox Events/Audit Log but the feed is a bit weird, it somewhat follows ascending order, I want to get the events in Descending order, but I'm unable to find any parameter that can allow me to do that, do you know a way to do this? your help is highly appreciated! Best10Views0likes1CommentShare_folder endpoint returning too_many_mounts/tree_size_exceeded
An operation that worked perfectly fine before now returns the following error: makeDropboxRequest: https://api.dropboxapi.com/2/sharing/share_folder Error making Dropbox request: too_many_mounts/tree_size_exceeded/ Network error making request to https://api.dropboxapi.com/2/sharing/share_folder: Error: too_many_mounts/tree_size_exceeded/ The process leading up to this error: 1-4 subfolders are created, of which the parent (main) folder housing those 4 subfolders is shared so that groups can be assigned to have access to it. Other than that the folder is empty, and the subfolders are empty as well. This never happened before, so I'd like to know what changed so that we can apply a workaround.61Views0likes3CommentsDBChooser for iOS - how to build locally
Hi, I have been using the DBChooser framework in my app for a few years and it's been working fine, until iOS18 came out and now it fails to open the Dropbox app when invoked, with this message: BUG IN CLIENT OF UIKIT: The caller of UIApplication.openURL(_:) needs to migrate to the non-deprecated UIApplication.open(_:options:completionHandler:). Seeing that DBChooser has been 'deprecated' on the Dropbox developer website, and that the Github repo hasn't been updated in 11 years, I thought I'd at least be able to download the code on my Mac and then be able to build the framework locally, and possibly fix some of the deprecation issues. Unfortunately the downloaded project fails to compile on my Mac. The error I get is in the 'Run Script' phase: accessing build database "/Users/myname/Library/Developer/Xcode/DerivedData/DBChooser-colttgencgxlykfovqhahsshavkt/Build/Intermediates.noindex/XCBuildData/build.db": database is locked Possibly there are two concurrent builds running in the same filesystem location. Can anyone help me figure this out? I am using Xcode 16.1, running macOS 15.1.42Views0likes4CommentsAPI 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?80Views0likes3Comments0 bytes when uploading PDF through API
I am using Webflow and Wized to upload a file to Dropbox however when I upload the file the response says size 0 and in dropbox it says 0 bytes and I can't open it. const contentToCapture = document.querySelector('.pdf-content'); html2canvas(contentToCapture, { scale: 0.75 }).then((canvas) => { const base64image = canvas.toDataURL('image/png'); const pdf = new jsPDF('p', 'px', [canvas.width, canvas.height]); pdf.addImage(base64image, 'PNG', 0, 0, canvas.width, canvas.height); const pdfBlob = pdf.output('blob'); v.pdf_data = pdfBlob; }); Above is how I create the pdf and convert it to a blob. The pdf itself works fine when I download it. This is how the request is set up.Solved