Skip to content

A basic example of uploading a file to your Dropbox account.

Notifications You must be signed in to change notification settings

codeadamca/php-dropbox-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uploading a File to Dropbox Using PHP

A basic example of uploading a file to your Dropbox account using vanilla PHP and a generated access token.

To make this upload scripte work just follow these setps:

  1. Login to your Dropbox account and go to the Dropbox developers portal.

  2. Click on App Console.

  3. Create a new app or use an existing app. Make sure the app has files.content.write checked in the Permissions tab.

  4. On the Settings tab generate an Access Token. Place the Access Token in the .env file.

  5. Test the upload script.

Note

The root folder ID must be kept current. If the upload is not working use the /get_authenticated_admin to retrieve an updated folder ID.

This cose sample uses a .env files as described on the php-env repo.


Repo Resources


About

A basic example of uploading a file to your Dropbox account.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages