I have an App named "Android Outliner" with DropBox Api2 integration. One of my customers has an issue while trying to upload a file.
fileMetadata = dbxClientV2
.files()
.uploadBuilder("/" + dropboxDir + "/" + file.getName())
.withAutorename(false)
.withMode(WriteMode.OVERWRITE)
.withMute(false)
.uploadAndFinish(fileInputStream);
...
Dropbox: upload file ... treepad Infoca.hjt
Dropbox: Something else went wrong while uploading.
java.lang.IllegalArgumentException: Value is null
at com.dropbox.core.v2.files.WriteMode.com.dropbox.core.v2.files.WriteMode update(java.lang.String)(SourceFile:170)
at at.ff.util.Util.java.lang.String uploadFileToDropbox(android.content.Context,java.lang.String,java.lang.String,java.io.File,java.lang.String,java.lang.String)(SourceFile:745)
at at.ff.outliner.SyncTreepad.boolean exportSync(long,java.util.ArrayList)(SourceFile:414)
at at.ff.outliner.ActivityList.boolean saveState(boolean)(SourceFile:2667)
at at.ff.outliner.ActivityList$SaveStateTask.java.lang.Boolean doInBackground(java.lang.Void[])(SourceFile:2896)
at at.ff.outliner.ActivityList$SaveStateTask.java.lang.Object doInBackground(java.lang.Object[])(SourceFile:2848)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
export sync: upload to Dropbox failed null /storage/emulated/0/outliner/sync/treepad/Infoca.hjt
Creating of folders within the "apps" folder works, just uploading files fails.
This happens, even if the user tries with an other dropbox account.
Usually the App-folder, which Outliner is allowed to access, always is
"Apps/outliner".
In the case of this customer it is
"Aplicaciones/outliner".
This is also the folder where Outliner successfully created the subfolders.
The customer's Android Settings as well as the Application language is spanish.
The customer also told me that he uses a Linux desktop with a Dropbox client.