Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
sobharaj m.
11 years agoNew member | Level 1
URL Unauthorized access error while accessing files from dropbox?
we are accessing having a problem in URL we have a file named xyx (1).jpg while passing this to server we are getting response as Unauthorized Access. May I Know how to pass this request to Server?
Here am using DropBox API for Winrt C#.
39 Replies
Replies have been turned off for this discussion
- Steve M.11 years ago
Dropbox Staff
I edited your post to remove the signature, but you may want to get a new app key and secret now that yours has been published here.
- Steve M.11 years ago
Dropbox Staff
The signature that you originally posted looks broken... it should have an ampersand (&) at the end of it. (When URL-encoded, and ampersand ends up being a %26.) See https://blogs.dropbox.com/developers/2012/07/using-oauth-1-0-with-the-plaintext-signature-method/ for an example.
- sobharaj m.11 years agoNew member | Level 1
Hi I used PLAINTEXT but now it is not showing even single image thumbnail. but when i clicked on it it showing full image .
- Steve M.11 years ago
Dropbox Staff
If I understand you correctly, you're no longer getting an "unauthorized access" error at all. Is that right?
If so, please explain the new issue you're seeing. Include the relevant code, what you expected to happen, and what actually happened.
- sobharaj m.11 years agoNew member | Level 1
No but now am getting Unauthorized Exception in case of showing thumbnails we are using this url( https://api-content.dropbox.com/1/thumbnails/auto ) It is always giving us above mentioned exception. How to get Thumbnails of Images from dropbox.
- Steve M.11 years ago
Dropbox Staff
So you're still getting an "unauthorized error" message? Is this on all paths or still just the ones that include parentheses? Are you still using HMAC signing, or have you switched to PLAINTEXT?
Is it only
/thumbnailsthat fails, or do other endpoints also fail? - sobharaj m.11 years agoNew member | Level 1
Am using PLAINTEXT only. Yes it fails only for Thumbnails.
- sobharaj m.11 years agoNew member | Level 1
It is on all paths but only for Thumbnails.
- Steve M.11 years ago
Dropbox Staff
Please share code for a call that works (something other than /thumbnails) and a call that doesn't work (/thumbnails).
- sobharaj m.11 years agoNew member | Level 1
For Thumbnails
string url = DriveUtilities.GenerateSignature( new Uri(string.Format(AppConstants.DropBox_GetThumbnail, item.serverFileId), UriKind.RelativeOrAbsolute), "GET", drive.AccessToken, drive.RefreshToken); Stream fileStream = await FileHelper.getFileInputStream(url); if (fileStream != null) { try { if (fileStream.Length > 0) await FileSaveToStorage(fileStream, file); handler(fileStream); } catch (Exception ex) { } }for full image we are using this code (working)
WebProvider objWebProvider = new WebProvider(); string size = "?size=" + await CommonFunctions.GetThumbnailSize(DriveType.DROPBOX); var uri = DriveUtilities.GenerateThumbviewSignature( new Uri(string.Format(AppConstants.DropBox_GetThumbnail, path) + size, UriKind.RelativeOrAbsolute), "GET", DropBox_AccessToken, DropBox_AccessTokenSecret); url = uri.ToString();
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!