Search

Copy File

Last Updated: Nov 4, 2020

Articles

Use this function to copy file from one place to another in Dropbox.

Syntax

Copy File (access_token, from_path, to_path)

Parameters

Input Parameter Name Description
access_token Access token of Dropbox
from_path Path of the file that needs to be copied
to_path Path to where the file needs to be copied

Returns

Return Value Description
Output
  • On Success: 1, File copied successfully
  • On Failure: 0, Error Message

Sample

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

  • Uses the access token ‘ABCDCEF’ to connect to the Dropbox account, copies the file ‘Source/New_file.txt’ to ‘/Destination/’.
    Returns ‘File copied successfully’ on copying the file.

To view all the Dropbox functions, click here.

Did you find what you were looking for?