We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
sobharaj m.
10 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? ...
sobharaj m.
10 years agoNew member | Level 1
Yes Error happens for all files with that name.
And this is the code we are using to retrieve the thumbnails of images.
public async Task<string> getThumbnailUrl(string path)
{
string url = string.Empty;
try
{
WebProvider objWebProvider = new WebProvider();
var uri = DriveUtilities.GenerateSignature(new Uri(string.Format(AppConstants.DropBox_GetMediaItem, path), UriKind.RelativeOrAbsolute),
"GET", DropBox_AccessToken, DropBox_AccessTokenSecret);
uri = await objWebProvider.GETRequest(uri).ConfigureAwait(false);
if (!string.IsNullOrEmpty(uri) && !uri.Equals(AppConstants.Unauthorized))
{
DropBoxThumbnail result = JsonConvert.DeserializeObject<DropBoxThumbnail>(uri);
if (result != null)
url = result.url;
}
else
{
path = WebUtility.UrlEncode(path);
var newuri = DriveUtilities.GenerateSignature(new Uri(string.Format(AppConstants.DropBox_GetMediaItem, path), UriKind.RelativeOrAbsolute),
"GET", DropBox_AccessToken, DropBox_AccessTokenSecret);
newuri = await objWebProvider.GETRequest(newuri).ConfigureAwait(false);
if (!string.IsNullOrEmpty(newuri) && !newuri.Equals(AppConstants.Unauthorized))
{
DropBoxThumbnail result = JsonConvert.DeserializeObject<DropBoxThumbnail>(newuri);
if (result != null)
url = result.url;
}
else
{
}
}
}
catch { url = path; }
return url;
}
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf 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 or Facebook.
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!