This project is read-only.

Upload File into subfolders

Sep 7, 2012 at 10:53 PM



I can not upload to a folder, just in the root. The system return this error message: 

The remote server returned an error: (403) Forbidden.



Dec 18, 2012 at 5:57 PM

I am getting the same error. Did you manage to solve this?


I can create folder and files in root, but not in child folder. I get the same 403 error.




technical dogsbody

Apr 9, 2013 at 1:41 PM
I was able to find a workaround. In the following method in the DropBoxStorageProviderService class:
private string GetResourceUrlInternal(IStorageProviderSession session, ICloudFileSystemEntry fileSystemEntry)
Remove the calls to HttpUtilityEx.UrlEncodeUTF8, so instead of HttpUtilityEx.UrlEncodeUTF8(resourcePath), just do resourcePath.

The same needs to be done in:
public static String GetDownloadFileUrlInternal(IStorageProviderSession session, ICloudFileSystemEntry entry)
You need to remove the calls to HttpUtilityEx.UrlEncodeUTF8 and instead of url += HttpUtilityEx.UrlEncodeUTF8(dropboxPath), just use url += dropboxPath;

This worked for me even if the subfolders in the path had spaces on their names.