Upload File into subfolders

Sep 7, 2012 at 9:53 PM

Hi, 

 

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.

 

Thanks.

Dec 18, 2012 at 4: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.

 

Thanks

 

technical dogsbody

Apr 9, 2013 at 12: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.