Search

Copy File

Last Updated: Mar 15, 2021

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

To know more about access_token, click here.

Returns

Return Value Description
Output
  • On Success returns 1 | File copied successfully
  • On Failure returns 0 | Error Message

Sample

Copy File (ABCDCEF, /Invoices/Travel.pdf, /Travel)

  • Uses the access token ABCDCEF to connect to the Dropbox account, copies the file /Invoices/Travel.pdf to /Travel.
    Returns File copied successfully on copying the file.

To view all the Dropbox functions, click here.

Did you find what you were looking for?