Property | Type | Description | |
---|---|---|---|
$chunkSize | unknown | Chunked file size limit |
Property | Type | Description | |
---|---|---|---|
$api_content_url | Content API URl | ||
$api_url | API URl | ||
$oauth | Dropbox_OAuth | OAuth object | |
$root | string | Default root-path, this will most likely be 'sandbox' or 'dropbox' | |
$useSSL |
Method | Description | |
---|---|---|
__construct ( Dropbox_OAuth $oauth, string $root = self::ROOT_DROPBOX, $useSSL = true ) | Constructor | |
chunkedUpload ( string $path, $handle, $root = null, boolean $overwrite = true, $offset, $uploadID = null ) : stdClass | Uploads large files to Dropbox in mulitple chunks | |
copy ( string $from, string $to, string $root = null ) : stdclass | Copies a file or directory from one location to another | |
copy_ref ( type $path, type $root = null ) : type | Creates and returns a copy_ref to a file. This reference string can be used to copy that file to another user's Dropbox by passing it in as the from_copy_ref parameter on /fileops/copy. | |
createFolder ( string $path, string $root = null ) : stdclass | Creates a new folder | |
delete ( string $path, string $root = null ) : array | Deletes a file or folder. | |
delta ( string $cursor ) : stdclass | A way of letting you keep up with changes to files and folders in a user's Dropbox. You can periodically call /delta to get a list of "delta entries", which are instructions on how to update your local state to match the server's state. | |
getAccountInfo ( ) : stdclass | Returns information about the current dropbox account | |
getFile ( string $path = '', string $root = null ) : string | Returns a file's contents | |
getMetaData ( string $path, boolean $list = true, string $hash = null, integer $fileLimit = null, string $root = null ) : array | true | Returns file and directory information | |
getThumbnail ( string $path, string $size = 'small', string $root = null ) : string | Returns a thumbnail (as a string) for a file path. | |
media ( type $path, type $root = null ) : type | Returns a link directly to a file. | |
move ( mixed $from, mixed $to, string $root = null ) : stdclass | Moves a file or directory to a new location | |
putFile ( string $path, string $file, string $root = null ) : boolean | Uploads a new file | |
putStream ( $path, $file, $root = null, boolean $overwrite = true ) : array | Uploads file data from a stream | |
search ( string $query = '', string $root = null, string $path = '' ) : array | Search | |
share ( string $path, string $root = null, string $short_url = true ) : array | Creates and returns a shareable link to files or folders. |
Method | Description | |
---|---|---|
multipartFetch ( string $uri, $file, $filename ) : boolean | This method is used to generate multipart POST requests for file upload |
public __construct ( Dropbox_OAuth $oauth, string $root = self::ROOT_DROPBOX, $useSSL = true ) | ||
$oauth | Dropbox_OAuth | |
$root | string | default root path (sandbox or dropbox) |
public chunkedUpload ( string $path, $handle, $root = null, boolean $overwrite = true, $offset, $uploadID = null ) : stdClass | ||
$path | string | Path to upload the file to, relative to root |
$overwrite | boolean | Should the file be overwritten? (Default: true) |
return | stdClass |
public copy_ref ( type $path, type $root = null ) : type | ||
$path | type | |
$root | type | |
return | type |
public createFolder ( string $path, string $root = null ) : stdclass | ||
$path | string | |
$root | string | Use this to override the default root path (sandbox/dropbox) |
return | stdclass |
public getAccountInfo ( ) : stdclass | ||
return | stdclass |
public getMetaData ( string $path, boolean $list = true, string $hash = null, integer $fileLimit = null, string $root = null ) : array | true | ||
$path | string | Path to receive information from |
$list | boolean | When set to true, this method returns information from all files in a directory. When set to false it will only return infromation from the specified directory. |
$hash | string | If a hash is supplied, this method simply returns true if nothing has changed since the last request. Good for caching. |
$fileLimit | integer | Maximum number of file-information to receive |
$root | string | Use this to override the default root path (sandbox/dropbox) |
return | array | true |
public media ( type $path, type $root = null ) : type | ||
$path | type | |
$root | type | |
return | type |
protected multipartFetch ( string $uri, $file, $filename ) : boolean | ||
$uri | string | |
return | boolean |
protected string $root | ||
return | string |