Comments
-
Hi Ashley, can you share some code and output to show the issue you're running in to? I want to make sure I understand your question and send along whatever feedback you have. Anyway, team folders and their contents are owned by the team itself, as opposed to individual members.
-
Hi Anthony, this thread was originally posted in the API development forum, which is for developers using the API so it was likely a different issue that the problem you described. Please post your question as a new thread in the "Issues & Troubleshooting" forum to get it to the right people:…
-
Hi Robert, this thread was originally posted in the API development forum, which is for developers using the API so it was likely a different issue that the problem you described. Please post your question as a new thread in the "Issues & Troubleshooting" forum to get it to the right people:…
-
Hi Christeen, this thread was originally posted in the API development forum, which is for developers using the API so it was likely a different issue that the problem you described. Please post your question as a new thread in the "Issues & Troubleshooting" forum to get it to the right people:…
-
We'll be happy to help with whatever issues you're having, but we'll need some more information. For example, please post the full error message and the steps to reproduce the problem. A screenshot may also be useful.
-
I just put together a simple example using just XMLHttpRequest: var path = "/test_javascript_upload.txt"; var content = "data to upload"; var accessToken = "<ACCESS_TOKEN>"; var uploadUrl = "https://content.dropboxapi.com/2/files/upload" var result; var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function() { if…
-
I unfortunately don't have any examples without using jQuery. Here are the examples I do have though: - Uploading a file from text via jQuery in JavaScript - Uploading a file via jQuery in JavaScript You could review those to see how it works, and then covert them to remove the jQuery dependency.
-
Thanks for the feedback John! It looks like you have this correct, so I'm sending this along as a feature request for support for this flow.
-
Thanks for checking that John. Also, for reference since I didn't mention it earlier, /sh/ is for folders, and /s/ is for files. If those aren't the types you're trying to use, unfortunately I'm afraid this is an unsupported sharing flow for the API. Apologies I can't be of more help!
-
Thanks for elaborating John! This is related to the issue I was referring to in my comment earlier in this thread on May 4. To expand on that though, the links included in emails like this aren't intended for programmatic consumption, but to do so, you'd need to make a normal HTPT GET request to it first to get the…
-
Hi John, can you elaborate on what you mean when you say it "fails to work"? What error are you getting? The get_shared_link_metadata functionality in the API Explorer seems to be working for me: Can you share the code and error, or a screenshot showing the issue? Note that if you want to download the file content, you can…
-
Unfortunately the exact link in the email itself isn't a supported format for this endpoint. You'll need to follow the redirect on that link to expand it to the expected format, which would look like this: https://www.dropbox.com/sh/abcdefgh/AiBjCkDlEmFnGoHp
-
I'm not sure I understand your question. Can you clarify? Thanks in advance!
-
Hi David, I unfortunately don't have a sample of using upload sessions in bash/curl directly, but here are some examples using the Python and .NET SDKs, which should serve as a useful reference for the necessary logic: # This uses the Dropbox Python SDK https://github.com/dropbox/dropbox-sdk-python to upload a file to the…
-
I can't seem to reproduce this. I was just able to upload a zip file using this code and it unzipped properly for me. How are you checking the resulting zip file?
-
The rev is currently the best way to track changes like this. If the rev hasn't changed, you know that the file contents have changed. If the rev has changed, the file contents may have changed. The rev does change when a file is moved or renamed though, as you mentioned. It sounds like you'd be better suited by a hash of…
-
[Cross-linking for reference: https://stackoverflow.com/questions/36997863/unable-to-upload-the-file-into-dropbox-from-salesforce-using-files-put-api ] I don't have any sample code for Apex specifically unfortunately. I see you've updated your code to set the OAuth 2 access token. It looks like you're encoding it though?…
-
First, you're using basic auth with your app key and secret, but this endpoint requires access to a specific Dropbox account, which is accomplished using an account-specific access token. You can find more information on using OAuth with the Dropbox API here: https://www.dropbox.com/developers/reference/oauthguide If you…
-
Hi Ralph, when using the "token" flow, the access token is placed in the "fragment" of the redirect URI (the portion after the "#"), per the OAuth specification. Browsers don't send that portion up to the server though, so if you are building a web app, using the "code" flow instead is the right way to go.
-
Great, and thanks for letting me know. We'll get it fixed up.
-
Hi Barry, the first parameter to files_upload should be "A string or file-like obj of data.". That's the data that gets uploaded. So, if you want to upload a file, you need to open the file and supply the object (not just the path), as you have in your latter examples. As far as the BadStatusLine issue is concerned, can…
-
Thanks Joel, that's helpful. The API expects UTC, so you should instead do: expires = datetime.datetime.utcnow() + datetime.timedelta(minutes=1)
-
Setting the expiration to 1 minute in the future is working fine for me. Can you share your code and the error you're getting? Thanks in advance!
-
I believe there are a few different factors that determine the paging, so you should just make sure your app always checks and follows the has_more and reset indicators to make sure it's always working from correct data. And yes, Dropbox will send webhook notifications for any changes in the linked accounts. Your process…
-
Thanks! Since has_more is true, you should immediately call getDelta again, with $cursor set to the "cursor" value returned from the previous call. (The HTTP documentation for /delta contains some additional information on using it.)
-
You should certainly be able to list the contents of a shared folder using the API just like you would a non-shared folder. I just tried it out and it's working for me. Can you share some sample code and output showing the issue you're seeing? If you're using getDelta, make sure you check the returned "has_more" value and…
-
The shared links you can retrieve using the SDK in the Sharing namespace, e.g., CreateSharedLinkWithSettingsAsync, are meant for sharing links to others users. These links don't return the file content directly. If you just need to stream data to a media player, you should instead use GetTemporaryLinkAsync. That will give…
-
Hi Chase, the Chooser/Saver domains you need to register should be the domain(s) of the site(s) where you will deploy your Chooser/Saver integration. For example, if I was developing an integration for this forum itself, I might register "localhost" for my local development environment, like you mentioned, and then to…
-
Yes, that would do it. That gives you that BadRequestException instead, since the token is recognizably not the right format. If instead you just modify an existing character in the access token in place you can force the InvalidAccessTokenException instead.
-
InvalidAccessTokenException does get thrown for me when calling listFolder with an invalid access token. (Both catching InvalidAccessTokenException and using instanceof work as expected in my test.) Can you share your code that reproduces this? What version of the SDK do you have installed? Also, please print and share the…