cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Android V2 API. Successful fileupload but no file in Dropbox Directory

Android V2 API. Successful fileupload but no file in Dropbox Directory

tscheims
New member | Level 2
Go to solution

I'm using the example source code from github for an android application.

 

For the file upload  i'm using the provided UploadFileTaks class. I get no exception and the "onUploadComlete" Callback is called after 1-2 seconds, but i dont find the file in my dropbox folder.

 

What i'm missing / doing wrong?

 

Kind regards

tscheims

 

 

 

1 Accepted Solution

Accepted Solutions

tscheims
New member | Level 2
Go to solution

I found the error: I just looked in the wrong directory: the directory is located under /Apps/app-name

View solution in original post

4 Replies 4

tscheims
New member | Level 2
Go to solution

The FileMetadata return Value looks like this:

 

{".tag":"file","name":"1520981755788.jpg","id":"id:**********","client_modified":"2018-03-13T22:57:09Z","server_modified":"2018-03-13T22:57:09Z","rev":"*************","size":2150,"path_lower":"/app-path/1520981755788.jpg","path_display":"/app-path/1520981755788.jpg","content_hash":"f27d13527113eedb61b03049bdfc2f**********************************"}

 

and that's the used upload method:

 

try (InputStream inputStream = new FileInputStream(localFile)) {
return mDbxClient.files().uploadBuilder(remoteFolderPath + "/" + remoteFileName)
.withMode(WriteMode.OVERWRITE)
.uploadAndFinish(inputStream);
} catch (DbxException | IOException e) {
mException = e;
}

tscheims
New member | Level 2
Go to solution

I found the error: I just looked in the wrong directory: the directory is located under /Apps/app-name

max1450
New member | Level 2
Go to solution

vc pode min  ajudar 

 

Greg-DB
Dropbox Staff
Go to solution

@max1450 

O cartaz original aqui resolveu o problema, então, se você também estiver executando em um problema, abra um novo tópico com os detalhes no fórum relevante para que possamos ajudar.
---

Desculpe nossas traduções. Nossas traduções foram criadas usando um tradutor online. Nós gostaríamos de suportar todos os idiomas, mas atualmente não estamos equipados para fazê-lo. Aqui está a versão em inglês:

---

Please excuse our translations. Our translations were created using an online translator. We'd like to support every language, but we're not currently equipped to do so. Here is the English version:

--- 

The original poster here sorted out their issue, so if you're also running in to a problem, please open a new thread with the details in the relevant forum so we can help.

Need more support?