files.com / files-php-sdk
Files.com PHP SDK
Installs: 48 576
Dependents: 0
Suggesters: 0
Security: 0
Stars: 23
Watchers: 8
Forks: 8
Open Issues: 2
Requires
- php: >=5.5.0
- ext-curl: *
- ext-intl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6 || ^7
- dev-master
- v2.0.108
- v2.0.107
- v2.0.106
- v2.0.105
- v2.0.104
- v2.0.103
- v2.0.102
- v2.0.101
- v2.0.100
- v2.0.99
- v2.0.98
- v2.0.97
- v2.0.96
- v2.0.95
- v2.0.94
- v2.0.93
- v2.0.92
- v2.0.90
- v2.0.89
- v2.0.88
- v2.0.87
- v2.0.86
- v2.0.85
- v2.0.84
- v2.0.83
- v2.0.82
- v2.0.81
- v2.0.80
- v2.0.79
- v2.0.78
- v2.0.77
- v2.0.76
- v2.0.75
- v2.0.74
- v2.0.73
- v2.0.72
- v2.0.71
- v2.0.70
- v2.0.69
- v2.0.68
- v2.0.67
- v2.0.66
- v2.0.65
- v2.0.64
- v2.0.63
- v2.0.62
- v2.0.61
- v2.0.60
- v2.0.59
- v2.0.58
- v2.0.57
- v2.0.56
- v2.0.55
- v2.0.54
- v2.0.53
- v2.0.52
- v2.0.51
- v2.0.50
- v2.0.49
- v2.0.48
- v2.0.47
- v2.0.46
- v2.0.45
- v2.0.44
- v2.0.43
- v2.0.42
- v2.0.41
- v2.0.40
- v2.0.39
- v2.0.38
- v2.0.37
- v2.0.36
- v2.0.35
- v2.0.34
- v2.0.33
- v2.0.32
- v2.0.31
- v2.0.30
- v2.0.29
- v2.0.28
- v2.0.27
- v2.0.26
- v2.0.25
- v2.0.24
- v2.0.23
- v2.0.22
- v2.0.21
- v2.0.20
- v2.0.19
- v2.0.18
- v2.0.17
- v2.0.16
- v2.0.15
- v2.0.14
- v2.0.13
- v2.0.12
- v2.0.11
- v2.0.10
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.2.71
- v1.2.70
- v1.2.69
- v1.2.68
- v1.2.67
- v1.2.66
- v1.2.65
- v1.2.64
- v1.2.63
- v1.2.62
- v1.2.61
- v1.2.60
- v1.2.59
- v1.2.58
- v1.2.57
- v1.2.56
- v1.2.55
- v1.2.54
- v1.2.53
- v1.2.52
- v1.2.51
- v1.2.50
- v1.2.49
- v1.2.48
- v1.2.47
- v1.2.46
- v1.2.45
- v1.2.44
- v1.2.43
- v1.2.42
- v1.2.41
- v1.2.40
- v1.2.39
- v1.2.38
- v1.2.37
- v1.2.36
- v1.2.35
- v1.2.34
- v1.2.33
- v1.2.32
- v1.2.31
- v1.2.30
- v1.2.29
- v1.2.28
- v1.2.27
- v1.2.26
- v1.2.25
- v1.2.24
- v1.2.23
- v1.2.22
- v1.2.21
- v1.2.20
- v1.2.19
- v1.2.18
- v1.2.17
- v1.2.16
- v1.2.15
- v1.2.14
- v1.2.13
- v1.2.12
- v1.2.11
- v1.2.10
- v1.2.9
- v1.2.8
- v1.2.7
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.475
- v1.0.474
- v1.0.473
- v1.0.472
- v1.0.471
- v1.0.470
- v1.0.469
- v1.0.468
- v1.0.467
- v1.0.466
- v1.0.465
- v1.0.464
- v1.0.463
- v1.0.462
- v1.0.461
- v1.0.460
- v1.0.459
- v1.0.458
- v1.0.457
- v1.0.456
- v1.0.455
- v1.0.454
- v1.0.453
- v1.0.452
- v1.0.451
- v1.0.450
- v1.0.449
- v1.0.448
- v1.0.447
- v1.0.446
- v1.0.445
- v1.0.444
- v1.0.443
- v1.0.442
- v1.0.441
- v1.0.440
- v1.0.439
- v1.0.438
- v1.0.437
- v1.0.436
- v1.0.435
- v1.0.434
- v1.0.433
- v1.0.432
- v1.0.431
- v1.0.430
- v1.0.429
- v1.0.428
- v1.0.427
- v1.0.426
- v1.0.425
- v1.0.424
- v1.0.423
- v1.0.422
- v1.0.421
- v1.0.420
- v1.0.419
- v1.0.418
- v1.0.417
- v1.0.416
- v1.0.415
- v1.0.414
- v1.0.413
- v1.0.412
- v1.0.411
- v1.0.410
- v1.0.409
- v1.0.408
- v1.0.407
- v1.0.406
- v1.0.405
- v1.0.404
- v1.0.403
- v1.0.402
- v1.0.401
- v1.0.400
- v1.0.399
- v1.0.398
- v1.0.397
- v1.0.396
- v1.0.395
- v1.0.394
- v1.0.393
- v1.0.392
- v1.0.391
- v1.0.390
- v1.0.389
- v1.0.388
- v1.0.387
- v1.0.386
- v1.0.385
- v1.0.384
- v1.0.383
- v1.0.382
- v1.0.381
- v1.0.380
- v1.0.379
- v1.0.378
- v1.0.377
- v1.0.376
- v1.0.375
- v1.0.374
- v1.0.373
- v1.0.372
- v1.0.371
- v1.0.370
- v1.0.369
- v1.0.368
- v1.0.367
- v1.0.366
- v1.0.365
- v1.0.364
- v1.0.363
- v1.0.362
- v1.0.361
- v1.0.360
- v1.0.359
- v1.0.358
- v1.0.357
- v1.0.356
- v1.0.355
- v1.0.354
- v1.0.353
- v1.0.352
- v1.0.351
- v1.0.350
- v1.0.349
- v1.0.348
- v1.0.347
- v1.0.346
- v1.0.345
- v1.0.344
- v1.0.343
- v1.0.342
- v1.0.341
- v1.0.340
- v1.0.339
- v1.0.338
- v1.0.337
- v1.0.336
- v1.0.335
- v1.0.334
- v1.0.333
- v1.0.332
- v1.0.331
- v1.0.330
- v1.0.329
- v1.0.328
- v1.0.327
- v1.0.326
- v1.0.325
- v1.0.324
- v1.0.323
- v1.0.322
- v1.0.321
- v1.0.320
- v1.0.319
- v1.0.318
- v1.0.317
- v1.0.316
- v1.0.315
- v1.0.314
- v1.0.313
- v1.0.312
- v1.0.311
- v1.0.310
- v1.0.309
- v1.0.308
- v1.0.307
- v1.0.306
- v1.0.305
- v1.0.304
- v1.0.303
- v1.0.302
- v1.0.301
- v1.0.300
- v1.0.299
- v1.0.298
- v1.0.297
- v1.0.296
- v1.0.295
- v1.0.294
- v1.0.293
- v1.0.292
- v1.0.291
- v1.0.290
- v1.0.289
- v1.0.288
- v1.0.287
- v1.0.286
- v1.0.285
- v1.0.284
- v1.0.283
- v1.0.282
- v1.0.281
- v1.0.280
- v1.0.279
- v1.0.278
- v1.0.277
- v1.0.276
- v1.0.275
- v1.0.274
- v1.0.273
- v1.0.272
- v1.0.271
- v1.0.270
- v1.0.269
- v1.0.268
- v1.0.267
- v1.0.266
- v1.0.265
- v1.0.264
- v1.0.263
- v1.0.262
- v1.0.261
- v1.0.260
- v1.0.259
- v1.0.258
- v1.0.257
- v1.0.256
- v1.0.255
- v1.0.254
- v1.0.253
- v1.0.252
- v1.0.251
- v1.0.250
- v1.0.249
- v1.0.248
- v1.0.247
- v1.0.246
- v1.0.245
- v1.0.244
- v1.0.243
- v1.0.242
- v1.0.241
- v1.0.240
- v1.0.239
- v1.0.238
- v1.0.237
- v1.0.236
- v1.0.235
- v1.0.234
- v1.0.233
- v1.0.232
- v1.0.231
- v1.0.230
- v1.0.229
- v1.0.228
- v1.0.227
- v1.0.226
- v1.0.225
- v1.0.224
- v1.0.223
- v1.0.222
- v1.0.221
- v1.0.220
- v1.0.219
- v1.0.218
- v1.0.217
- v1.0.216
- v1.0.215
- v1.0.214
- v1.0.213
- v1.0.212
- v1.0.211
- v1.0.210
- v1.0.209
- v1.0.208
- v1.0.207
- v1.0.206
- v1.0.205
- v1.0.204
- v1.0.203
- v1.0.202
- v1.0.201
- v1.0.200
- v1.0.199
- v1.0.198
- v1.0.197
- v1.0.196
- v1.0.195
- v1.0.194
- v1.0.193
- v1.0.192
- v1.0.191
- v1.0.190
- v1.0.189
- v1.0.188
- v1.0.187
- v1.0.186
- v1.0.185
- v1.0.184
- v1.0.183
- v1.0.182
- v1.0.181
- v1.0.180
- v1.0.179
- v1.0.178
- v1.0.177
- v1.0.176
- v1.0.175
- v1.0.174
- v1.0.173
- v1.0.172
- v1.0.171
- v1.0.170
- v1.0.169
- v1.0.168
- v1.0.167
- v1.0.166
- v1.0.165
- v1.0.164
- v1.0.163
- v1.0.162
- v1.0.161
- v1.0.160
- v1.0.159
- v1.0.158
- v1.0.157
- v1.0.156
- v1.0.155
- v1.0.154
- v1.0.153
- v1.0.152
- v1.0.151
- v1.0.150
- v1.0.149
- v1.0.148
- v1.0.147
- v1.0.146
- v1.0.145
- v1.0.144
- v1.0.143
- v1.0.142
- v1.0.141
- v1.0.140
- v1.0.139
- v1.0.138
- v1.0.137
- v1.0.136
- v1.0.135
- v1.0.134
- v1.0.133
- v1.0.132
- v1.0.131
- v1.0.130
- v1.0.129
- v1.0.128
- v1.0.127
- v1.0.126
- v1.0.125
- v1.0.124
- v1.0.123
- v1.0.122
- v1.0.121
- v1.0.120
- v1.0.119
- v1.0.118
- v1.0.117
- v1.0.116
- v1.0.115
- v1.0.114
- v1.0.113
- v1.0.112
- v1.0.111
- v1.0.110
- v1.0.109
- v1.0.108
- v1.0.107
- v1.0.106
- v1.0.105
- v1.0.104
- v1.0.103
- v1.0.102
- v1.0.101
- v1.0.100
- v1.0.99
- v1.0.98
- v1.0.97
- v1.0.96
- v1.0.95
- v1.0.94
- v1.0.93
- v1.0.92
- v1.0.91
- v1.0.90
- v1.0.89
- v1.0.88
- v1.0.87
- v1.0.86
- v1.0.85
- v1.0.84
- v1.0.83
- v1.0.82
- v1.0.81
- v1.0.80
- v1.0.79
- v1.0.78
- v1.0.77
- v1.0.76
- v1.0.75
- v1.0.74
- v1.0.73
- v1.0.72
- v1.0.71
- v1.0.70
- v1.0.69
- v1.0.68
- v1.0.67
- v1.0.66
- v1.0.65
- v1.0.64
- v1.0.63
- v1.0.62
- v1.0.61
- v1.0.60
- v1.0.59
- v1.0.58
- v1.0.57
- v1.0.56
- v1.0.55
- v1.0.54
- v1.0.53
- v1.0.52
- v1.0.51
- v1.0.50
- v1.0.49
- v1.0.48
- v1.0.47
- v1.0.46
- v1.0.45
- v1.0.44
- v1.0.43
- v1.0.42
- v1.0.41
- v1.0.40
- v1.0.39
- v1.0.38
- v1.0.37
- v1.0.36
- v1.0.35
- v1.0.34
- v1.0.33
- v1.0.32
- v1.0.31
- v1.0.30
- v1.0.29
- v1.0.28
- v1.0.27
- v1.0.26
- v1.0.25
- v1.0.24
- v1.0.23
- v1.0.22
- v1.0.21
- v1.0.20
- v1.0.19
- v1.0.18
- v1.0.17
- v1.0.16
- v1.0.15
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
This package is auto-updated.
Last update: 2024-11-20 17:41:59 UTC
README
The Files.com PHP SDK provides convenient Files.com API access to applications written in PHP.
The content included here should be enough to get started, but please visit our Developer Documentation Website for the complete documentation.
Introduction
The Files.com PHP SDK provides convenient access to all of Files.com from applications written in PHP.
You can use it to directly work with files and folders as well as perform management tasks such as adding/removing users, onboarding counterparties, retrieving information about automations and more.
Installation
The Files.com PHP SDK is installed using Composer. See https://packagist.org for more info.
First, install Composer if necessary:
curl -sS https://getcomposer.org/installer | php
Then use Composer to install the Files.com SDK:
php composer.phar require files.com/files-php-sdk
Requirements
- PHP 5.5+
- php-curl extension
Explore the files-sdk-php code on GitHub.
Getting Support
The Files.com Support team provides official support for all of our official Files.com integration tools.
To initiate a support conversation, you can send an Authenticated Support Request or simply send an E-Mail to support@files.com.
Authentication
Authenticate with an API Key
Authenticating with an API key is the recommended authentication method for most scenarios, and is the method used in the examples on this site.
To use the API or SDKs with an API Key, first generate an API key from the web interface or via the API or an SDK.
Note that when using a user-specific API key, if the user is an administrator, you will have full access to the entire API. If the user is not an administrator, you will only be able to access files that user can access, and no access will be granted to site administration functions in the API.
\Files\Files::setApiKey('YOUR_API_KEY'); ## Alternatively, you can specify the API key on a per-object basis in the second parameter to a model constructor. $user = new \Files\Model\User($params, array('api_key' => 'YOUR_API_KEY')); ## You may also specify the API key on a per-request basis in the final parameter to static methods. \Files\Model\User::find($id, $params, array('api_key' => 'YOUR_API_KEY'));
Don't forget to replace the placeholder, YOUR_API_KEY
, with your actual API key.
Authenticate with a Session
You can also authenticate to the REST API or SDKs by creating a user session using the username and password of an active user. If the user is an administrator, the session will have full access to the entire API. Sessions created from regular user accounts will only be able to access files that user can access, and no access will be granted to site administration functions.
API sessions use the exact same session timeout settings as web interface sessions. When an API session times out, simply create a new session and resume where you left off. This process is not automatically handled by SDKs because we do not want to store password information in memory without your explicit consent.
Logging In
To create a session, the create
method is called on the \Files\Model\Session
object with the user's username and
password.
This returns a session object that can be used to authenticate SDK method calls.
$session = \Files\Model\Session::create(['username' => 'motor', 'password' => 'vroom']);
Using a Session
Once a session has been created, you can store the session globally, use the session per object, or use the session per request to authenticate SDK operations.
## You may set the returned session ID to be used by default for subsequent requests. \Files\Files::setSessionId($session->id); ## Alternatively, you can specify the session ID on a per-object basis in the second parameter to a model constructor. $user = new \Files\Model\User($params, array('session_id' => $session->id)); ## You may also specify the session ID on a per-request basis in the final parameter to static methods. \Files\Model\User::find($id, $params, array('session_id' => $session->id));
Logging Out
User sessions can be ended by calling the Session::destroy
method.
\Files\Model\Session::destroy();
Configuration
Global configuration can be done by setting properties directly on the \Files\Files
class.
Configuration Options
Auto Paginate
Auto-fetch all pages when results span multiple pages. The default value is true
.
\Files\Files::$autoPaginate = false
Base URL
Setting the base URL for the API is required if your site is configured to disable global acceleration. This can also be set to use a mock server in development or CI.
\Files\Files::setBaseUrl('https://MY-SUBDOMAIN.files.com');
Log Level
Supported values:
\Files\LogLevel::NONE
\Files\LogLevel::ERROR
\Files\LogLevel::WARN
\Files\LogLevel::INFO
(default)\Files\LogLevel::DEBUG
\Files\Files::$logLevel = \Files\LogLevel::DEBUG
Debug Requests
Enable debug logging of API requests. The default value is false
.
\Files\Files::$debugRequest = true
Debug Response Headers
Enable debug logging of API response headers. The default value is false
.
\Files\Files::$debugResponseHeaders = true
Connect Timeout
Network connect timeout in seconds. The default value is 30.0.
\Files\Files::$connectTimeout = 20.0
Read Timeout
Network read timeout in seconds. The default value is 90.
\Files\Files::$readTimeout = 60
Minimum Retry Delay
Minimum network delay in seconds before retrying. The default value is 0.5.
\Files\Files::$minNetworkRetryDelay = 1.0
Maximum Retry Delay
Maximum network delay in seconds before retrying. The default value is 1.5.
\Files\Files::$maxNetworkRetryDelay = 3.0
Maximum Network Retries
Maximum number of retries. The default value is 3.
\Files\Files::$maxNetworkRetries = 5
Sort and Filter
Several of the Files.com API resources have list operations that return multiple instances of the resource. The List operations can be sorted and filtered.
Sorting
To sort the returned data, pass in the sort_by
method argument.
Each resource supports a unique set of valid sort fields and can only be sorted by one field at a time.
The argument value is a Php associative array that has a key of the resource field name sort on and
a value of either "asc"
or "desc"
to specify the sort order.
// users sorted by username \Files\Files::setApiKey('my-key'); $users = \Files\Model\User::list(array( 'sort_by' => array("username" => "asc") ));
Filtering
Filters apply selection criteria to the underlying query that returns the results. They can be applied individually or combined with other filters, and the resulting data can be sorted by a single field.
Each resource supports a unique set of valid filter fields, filter combinations, and combinations of filters and sort fields.
The passed in argument value is a Php associative array that has a key of the resource field name to filter on and a passed in value to use in the filter comparison.
Filter Types
// non admin users \Files\Files::setApiKey('my-key'); $users = \Files\Model\User::list(array( 'filter' => array("not_site_admin" => true) )); foreach ($users as $value) { print("User username: " . $value->getUserName() . "\n"); }
// users who haven't logged in since 2024-01-01 \Files\Files::setApiKey('my-key'); $users = \Files\Model\User::list(array( 'filter_gteq' => array("last_login_at" => "2024-01-01") )); foreach ($users as $value) { print("User username: " . $value->getUserName() . "\n"); }
// users whose usernames start with 'test' \Files\Files::setApiKey('my-key'); $users = \Files\Model\User::list(array( 'filter_prefix' => array("username" => "test") )); foreach ($users as $value) { print("User username: " . $value->getUserName() . "\n"); }
// users whose usernames start with 'test' and are not admins \Files\Files::setApiKey('my-key'); $users = \Files\Model\User::list(array( 'filter_prefix' => array("username" => "test"), 'filter' => array("not_site_admin" => true), 'sort_by' => array("last_login_at" => "asc") )); foreach ($users as $value) { print("User username: " . $value->getUserName() . "\n"); }
Errors
The Files.com PHP SDK will return errors by raising exceptions. There are many exception classes defined in the Files SDK that correspond to specific errors.
The raised exceptions come from two categories:
- SDK Exceptions - errors that originate within the SDK
- API Exceptions - errors that occur due to the response from the Files.com API. These errors are grouped into common error types.
There are several types of exceptions within each category. Exception classes indicate different types of errors and are named in a
fashion that describe the general premise of the originating error. More details can be found in the exception object message using the
php getMessage()
method call.
Use standard PHP exception handling to detect and deal with errors. It is generally recommended to catch specific errors first, then
catch the general Files\FilesException
exception as a catch-all.
try { $session = Files\Model\Session::create(['username' => 'USERNAME', 'password' => 'BADPASSWORD']); } catch (Files\NotAuthenticated\InvalidUsernameOrPasswordException $e) { echo 'Authentication Error Occurred (' . get_class($e) . '): ', $e->getMessage(), "\n"; } catch (Files\FilesException $e) { echo 'Unknown Error Occurred (' . get_class($e) . '): ', $e->getMessage(), "\n"; }
Error Types
SDK Errors
SDK errors are general errors that occur within the SDK code. These errors generate exceptions. Each of these
exception classes inherit from a standard Exception
base class.
Files\Exception\ApiConnectException -> Files\Exception\FilesException -> Exception
SDK Exception Classes
API Errors
API errors are errors returned by the Files.com API. Each exception class inherits from an error group base class. The error group base class indicates a particular type of error.
Files\Exception\NotAuthorizedException\FolderAdminPermissionRequiredException -> Files\Exception\NotAuthorizedException -> Files\Exception\ApiException -> Files\Exception\FilesException -> Exception
API Exception Classes
Examples
Static File Operations
List Files in Root Folder
$rootFiles = \Files\Model\Folder::listFor('/'); foreach ($rootFiles as $file) { echo $file->getPath() . "\n"; }
Uploading a File on Disk
$sourceFilePath = 'local.txt'; $destinationFileName = 'uploads/remote.txt'; \Files\Model\File::uploadFile($destinationFileName, $sourceFilePath);
If the parent directories do not already exist, they can be automatically created by passing mkdir_parents
in the params
.
\Files\Model\File::uploadFile($destinationFileName, $sourceFilePath, ['mkdir_parents' => true]);
Writing a File
$fileData = 'contents'; $destinationFileName = 'uploads/remote.txt'; \Files\Model\File::uploadData($destinationFileName, $fileData);
Reading a File to Stream
$outputStream = fopen('php://output', 'w'); $remoteFilePath = 'uploads/remote.txt'; \Files\Model\File::downloadToStream($remoteFilePath, $outputStream);
Download a File to Disk
$localFilePath = 'local.txt'; $remoteFilePath = 'uploads/remote.txt'; // download entire file - with retries enabled \Files\Model\File::downloadToFile($remoteFilePath, $localFilePath); // partially download - just the first KB \Files\Model\File::partialDownloadToFile($remoteFilePath, $localFilePath, 0, 1023); // resume an incomplete download \Files\Model\File::resumeDownloadToFile($remoteFilePath, $localFilePath);
Getting a File Record by Path
$remoteFilePath = 'uploads/remote.txt'; $foundFile = \Files\Model\File::find($remoteFilePath);
File Object Operations
Getting a File Record by Path
$remoteFilePath = 'uploads/remote.txt'; $file = new \Files\Model\File(); $file->get($remoteFilePath);
Updating Metadata
$file->update([ 'provided_mtime' => '2000-01-01T01:00:00Z', 'priority_color' => 'red', ]);
Retrieving Metadata
$file->metadata([ 'with_previews' => true, 'with_priority_color' => true, ]);
Comparing Case-Insensitive Files and Paths
For related documentation see Case Sensitivity Documentation.
if(\Files\Util\PathUtil::same("Fïłèńämê.Txt", "filename.txt")) { echo "Paths are the same\n"; }
Mock Server
Files.com publishes a Files.com API server, which is useful for testing your use of the Files.com SDKs and other direct integrations against the Files.com API in an integration test environment.
It is a Ruby app that operates as a minimal server for the purpose of testing basic network operations and JSON encoding for your SDK or API client. It does not maintain state and it does not deeply inspect your submissions for correctness.
Eventually we will add more features intended for integration testing, such as the ability to intentionally provoke errors.
Download the server as a Docker image via Docker Hub.
The Source Code is also available on GitHub.
A README is available on the GitHub link.
Upgrading
Upgrading to Version 2.0 from previous versions
In Version 2.0, the Files.com PHP SDK was updated to comply with both the PSR-12 coding standard and the PSR-4 autoloading standard. No new classes were added or any existing classes removed, but some were moved to comply with the PSR-4 standard. If a client of the sdk references the moved classes, the client code will need to be updated to reference the new location of these classes.
Exception Classes
The affected classes were primarily Exception classes. Exceptions were moved into their own namespace (and source files).
The following table shows the classes that were changed for compliance
Base Exceptions
The Base exception were moved from the \Files
namespace to the \Files\Exception
namespace.
Examples of Base Exceptions Classes moved.
BadRequest Exceptions
The BadRequest group of exceptions were moved from the \Files\BadRequest
namespace to the \Files\Exception\BadRequest
namespace.
Example of BadRequest Classes moved.
NotAuthenticated Exceptions
The NotAuthenticated group of exceptions were moved from the
\Files\NotAuthenticated
namespace to the \Files\Exception\NotAuthenticated
namespace.
Example of NotAuthenticated Classes moved.
NotAuthorized Exceptions
The NotAuthorized group of exceptions were moved from the \Files\NotAuthorized
namespace to the \Files\Exception\NotAuthorized
namespace.
Example of NotAuthorized Classes moved.
NotFound Exceptions
The NotFound group of exceptions were moved from the \Files\NotFound
namespace to the \Files\Exception\NotFound
namespace.
Example of NotFound Classes moved.
ProcessingFailure Exceptions
The ProcessingFailure group of exceptions were moved from the
\Files\ProcessingFailure
namespace to the \Files\Exception\ProcessingFailure
namespace.
Example of ProcessingFailure Classes moved.
RateLimited Exceptions
The ProcessingFailure group of exceptions were moved from the
\Files\RateLimited
namespace to the \Files\Exception\RateLimited
namespace.
Example of RateLimited Classes moved.
ServiceUnavailable Exceptions
The ServiceUnavailable group of exceptions were moved from the
\Files\ServiceUnavailable
namespace to the
\Files\Exception\ServiceUnavailable
namespace.
Example of ServiceUnavailable Classes moved.
SiteConfiguration Exceptions
The SiteConfiguration group of exceptions were moved from the
\Files\SiteConfiguration
namespace to the \Files\Exception\SiteConfiguration
namespace.
Example of SiteConfiguration Classes moved.