You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- PHP 7.1 support (now minimal version is 7.4, PHP 8.0 is also supported)
11
+
-`FileInfoInterface::getImageInfo()`, `FileInfoInterface::getVideoInfo()`, `FileInfoInterface::getRekognitionInfo()` — see `FileInfoInterface::getContentInfo()`
12
+
### Added
13
+
- Support for [REST API 0.7](https://uploadcare.com/api-refs/rest-api/v0.7.0/)
14
+
-`FileInfoInterface::getContentInfo()`: returns `ContentInfoInterface` with `getMime()` (information about MimeType), `getImage` (`ImageInfoInterface` in case of an image) and `getVideo` (`VideoInfoInterface` in case of a video) methods;
- Addons (`AddonsApiInterface`): execute and check status of an add-on application:
17
+
-`requestAwsRecognition($id)`: execute AWS Rekognition Add-On for a given target to detect labels in an image
18
+
-`checkAwsRecognition(string $id)`: check the status of an Add-On execution request that had been started using the Execute Add-On operation
19
+
-`requestAntivirusScan($id, bool $purge = false)`: execute ClamAV virus checking Add-On for a given target
20
+
-`checkAntivirusScan(string $id)`: check the status of an Add-On execution request that had been started using the Execute Add-On operation
21
+
-`requestRemoveBackground($id, ?RemoveBackgroundRequestInterface $backgroundRequest = null)`: execute remove.bg background image removal Add-On for a given target
22
+
-`checkRemoveBackground(string $id)`: check the status of an Add-On execution request that had been started using the Execute Add-On operation
23
+
- Application data `FileInfoInterface::getAppdata()`: method returns `AppDataInterface` with information about addon-applications and associated data:
24
+
-`AwsRecognitionLabelsInterface`: information from previously executed `requestAwsRecognition` of image;
25
+
-`ClamAvVirusScanInterface`: information from [ClamAV](https://www.clamav.net/) antivirus scan
26
+
-`RemoveBgInterface`: data from previously executed `requestRemoveBackground`[remove.bg](https://remove.bg/) addon
You will see this values in a `metadata` object of `Uploadcare\File` response.
164
+
148
165
### Multipart upload
149
166
150
167
If you have a large file (more than 100Mb / 10485760 bytes), the uploader will automatically process it with a [multipart upload](https://uploadcare.com/api-refs/upload-api/#operation/multipartFileUploadStart). It'll take more time to upload, and also we don’t recommend it for a web environment.
@@ -205,7 +222,7 @@ After that, you can access to file operation methods:
205
222
- `$makePublic` — `true` to make copied files available via public links, `false` to reverse the behavior.
206
223
- `$pattern` — The parameter is used to specify file names Uploadcare passes to a custom storage. In case when the parameter is omitted, we use a pattern of your custom storage. Use any combination of allowed values.
207
224
208
-
See the [API documentation](https://uploadcare.com/api-refs/rest-api/v0.6.0/#tag/File) for more details.
225
+
See the [API documentation](https://uploadcare.com/api-refs/rest-api/v0.7.0/#tag/File) for more details.
209
226
210
227
### `Uploadcare\FileCollection` class
211
228
@@ -226,6 +243,74 @@ This class implements `FileInfoInterface` and has additional methods for file op
226
243
227
244
As you can see, additional methods help you to call API methods without direct API calls.
228
245
246
+
## Addons operations
247
+
248
+
Uploadcare provide a few additional operations with images.
0 commit comments