Questions tagged [dropbox-php]

Dropbox PHP SDK is MIT licensed and intended to be useful both as reference documentation and for regular use. However members of Dropbox developer community have also created alternative libraries in other programming languages.

The Dropbox API allows you to build the power of Dropbox directly into your app. The API provides methods to read and write from Dropbox securely, so your users can bring all their important files with them to your app. Get access to Dropbox PHP SDK Development Kit that provides access to the Dropbox REST API.

Source: Dropbox

122 questions
0
votes
0 answers

Class 'Dropbox\AppInfo' not found - PHP

My code, script start.php in app folder: require __DIR__ . '../../dropbox-php-sdk-master/vendor/autoload.php'; session_start(); $_SESSION['user_id'] = 1; $dropboxKey = ''; $dropboxSecret = ''; $appName = ''; $appInfo = new…
user13347937
0
votes
1 answer

Edit file that is uploaded to dropbox in Android

I have a file that is uploaded on dropbox i just want to edit it from my android application. I don't want to download it. File is in form of json formate. E.g I have a file name "Add" Formate : {"slots":[ …
Adnan Ijaz
  • 27
  • 1
  • 8
0
votes
1 answer

How to get dropbox files thumbnails in filelist?

I am integrating Dropbox into a Laravel/PHP project to allow subscribers to link their Dropbox account and access files from Dropbox storage. I am able to fetch directories and files list from Dropbox and also there are API to download files or…
Ajay Kumar
  • 29
  • 1
  • 7
0
votes
1 answer

Dropbox API V2 Upload file Error PHP-Laravel

This is library code in PHP for uploading a file in dropbox-sdk(file- Client.php), using laravel framework. I would call below function in my dropbox controller. function uploadFile($path, $writeMode, $inStream, $numBytes = null) { …
Pavan Tolety
  • 163
  • 2
  • 16
0
votes
1 answer

Missing CSRF token in session

I am creating the application which can fetch the files and folder from the dropbox and will show in the web page.I have the below code. $appInfo=new Dropbox\AppInfo($dropboxKey,$dropboxSecret); //store CSRF token $csrfTokenStore = new…
user8170058
0
votes
1 answer

Upload file content to dropbox

I want to upload file that I am generating in my app. It looks like I can upload file if I will provide path to the file, or url where the file is, but I have only content of the file. Is there a way I can upload that content dropbox ? I am using…
rtom
  • 585
  • 1
  • 12
  • 26
0
votes
2 answers

Dropbox - uploading files from url doesn't work consistently

I have a PHP script that uploads files into Dropbox. When I run it from command-line as a standalone script, it works perfectly. However, when I incorporate my code into the larger project, the file fails to upload, cURL returns "errno" 0 (meaning,…
joemtm
  • 21
  • 2
0
votes
2 answers

Error uploading file using dropbox graham (Laravel)

I've got a form and when I click submit and It calls the controller but this gives me an error: Class 'GrahamCampbell\Dropbox\Facades\Dropbox\WriteMode' not found Also I tried to create a Folder in my dropbox to check If there are some problem to…
Xavi
  • 25
  • 3
0
votes
0 answers

Dropbox API PHP upload file issue

I use a PHP server to manage Dropbox files for customers. My server records the user's access token. But When customers want to upload a file to theirs Dropbox,they must first upload file to my server,and my server use http(php curl) send file to…
zhiqin_guo
  • 109
  • 9
0
votes
0 answers

How to delete user uploaded file automatically after 7 days using dropbox api (php)

First of all I am using dropbox sdk (PHP) and successfully upload the file using below code $result = $dbxClient->uploadFile("/".$name, dbx\WriteMode::add(), $f); the problem is If the file name is same it automatically append the number (ex.…
Rushi Jagani
  • 160
  • 2
  • 12
0
votes
1 answer

How to save a file from Dropbox link in my Dropbox

If my client choose a file from Dropbox using Dropbox Chooser and we have a link like https://dl.dropboxusercontent.com/1/view/og7hvjnt7p57jjw/Penguins.jpg. Now if client removes file from his Dropbox account we have nothing so my question is how…
Arif Sami
  • 307
  • 1
  • 2
  • 14
0
votes
1 answer

Upload File on Dropbox using Access Token

I have created project in which I want file upload on my Dropbox account. It upload successfully in my Dropbox account. But problem is it will ask for authentication. I do not want that authentication popup. Bypass that authentication using my…
Sadikhasan
  • 18,365
  • 21
  • 80
  • 122
0
votes
2 answers

Know if access_token is for an App Folder or Full Access?

We have a bunch of mixed up authenticated accounts from the past few years in our database, where some were given "Full Access" early on and later it was changed to just using the "App Folder". Is there any way of using the API to know if the…
spirie
  • 21
  • 5
0
votes
1 answer

Auto-Mount Folder / Force Logout for second oAuth2 flow

I am programmatically creating a folder structure in one account (that has been oAuth2 authenticated) and then sharing the folder. Works great. Then I am adding a member to the folder so they can edit files within it. The problem I have is that it…
spirie
  • 21
  • 5
0
votes
1 answer

Could not resolve host: api-content.dropbox.com

I am frequently facing this issue Could not resolve host: api-content.dropbox.com While dropbox upload. I am facing this only some of shared hosting server. I contacted my hosting provider they said every thing fine. Can any one help what causing…
Kuppuraj
  • 389
  • 1
  • 6
  • 26
1 2 3
8 9