Forum Discussion

AnaliticaInnovare's avatar
AnaliticaInnovare
New member | Level 2
5 years ago
Solved

Moving of Files not Working

I am moving a file using the endpoint  https://api.dropboxapi.com/2/move_v2 which gives me a successful response however the file is not shown in the folder when i go to it.

  • The results retrieved from list_folder however the cache was not updated to cater for moved/copied items and that made it seem as though the api call was not successful. Problem is fixed now.

  • AnaliticaInnovare's avatar
    AnaliticaInnovare
    New member | Level 2

    The results retrieved from list_folder however the cache was not updated to cater for moved/copied items and that made it seem as though the api call was not successful. Problem is fixed now.

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

    Were you trying to move this file into that folder at "/Test folder"? A response from /2/files/move_v2 containing the updated metadata like this should indicate that the file was successfully moved, so it appears the move did work if that's what you were attempting.

     

    When you say "file is not shown in the folder", how are you checking that? Are you looking at the local filesystem on a computer with the Dropbox desktop client installed and running, or a Dropbox mobile client, or the Dropbox web site, or using the Dropbox API? In any case, make sure what you're looking at is up to date. (E.g., Refresh the page, or make sure the client is running, etc.)

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

      It looks like our messages just crossed. I'm glad to hear you sorted this out already.