Search

Restore File

Last Updated: Nov 4, 2020

Articles

Use this function to restore a deleted file to the provided folder in Dropbox.

Syntax

Restore File (access_token, dropbox_path, restore_folder_path)

Parameters

Input Parameter Name Description
access_token Access token of Dropbox
dropbox_path Path of the deleted file
restore_folder_path Path to where the file needs to be restored

Returns

Return Value Description
Output
  • On Success: 1, Restored file path
  • On Failure: 0, Error Message

Sample

Restore File (ABCDCEF, Source/New_file.txt, Destination/New_file)

  • Uses the access token ‘ABCDCEF’ to connect to the Dropbox account, restores the deleted file ‘Source/New_file.txt’ to ‘Destination/’.
    Returns the ‘Restored file path’ on restoring the file.

To view all the Dropbox functions, click here.

Did you find what you were looking for?