We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

tscheims's avatar
tscheims
New member | Level 2
7 years ago

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

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

 

 

 

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

  • tscheims's avatar
    tscheims
    New member | Level 2

    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's avatar
      tscheims
      New member | Level 2

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

    • Greg-DB's avatar
      Greg-DB
      Icon for Dropbox Staff rankDropbox Staff

      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.