Releases: uploadcare/uploadcare-php
Releases · uploadcare/uploadcare-php
v4.2.1
v4.2.0
- Added multi-page document conversion.
- Added unsafe content detection.
\Uploadcare\Group::getDatetimeStoredmethod is deprecated.- Improved date conversion (thanks to @pestaa).
v4.1.1
v4.1.0
We've added a method to pass generated secure signature (e.g. to the file uploader) and updated fromUrl method to allow synchronically upload files from remote URLs.
Breaking change
Uploadcare\Interfaces\UploaderInterface::checkStatus(string $token)now returnsUploadcare\Interfaces\File\FileInfoInterface
Added
Uploadcare\Interfaces\UploaderInterface::syncUploadFromUrlmethod for synchronically uploading a file from a remote URLUploadcare\Interfaces\UploaderInterface::getSignaturemethod for get signature to use in third-party uploaders
Removed
Uploadcare\Interfaces\Api\GroupApiInterface::storeGroup($id)Uploadcare\Group::store()
v4.0.2
v4.0.1
Removed
GroupApiInterface::storeGroup($id)method: see Uploadcare API changelog
Deprecated
- The
$addFieldsparameter ofFileApiInterface::listFilesmethod
Added
GroupApiInterface::removeGroup($id)method to delete a group
v4.0.0
This release is a result of REST API update to a new version. Read more about it here.
Removed
- PHP 7.1 support (now minimal version is 7.4, PHP 8.0 is also supported)
FileInfoInterface::getImageInfo(),FileInfoInterface::getVideoInfo(),FileInfoInterface::getRekognitionInfo()— seeFileInfoInterface::getContentInfo()
Added
- Support for REST API 0.7
FileInfoInterface::getContentInfo(): returnsContentInfoInterfacewithgetMime()(information about MimeType),getImage(ImageInfoInterfacein case of an image) andgetVideo(VideoInfoInterfacein case of a video) methods;FileInfoInterface::getMetadata()method returns file associated metadata array-accessible object;- Addons (
AddonsApiInterface): execute and check status of an add-on application:requestAwsRecognition($id): execute AWS Rekognition Add-On for a given target to detect labels in an imagecheckAwsRecognition(string $id): check the status of an Add-On execution request that had been started using the Execute Add-On operationrequestAntivirusScan($id, bool $purge = false): execute ClamAV virus checking Add-On for a given targetcheckAntivirusScan(string $id): check the status of an Add-On execution request that had been started using the Execute Add-On operationrequestRemoveBackground($id, ?RemoveBackgroundRequestInterface $backgroundRequest = null): execute remove.bg background image removal Add-On for a given targetcheckRemoveBackground(string $id): check the status of an Add-On execution request that had been started using the Execute Add-On operation
- Application data
FileInfoInterface::getAppdata(): method returnsAppDataInterfacewith information about addon-applications and associated data:
v3.2.4
v3.2.3
v3.2.2
Fix for an issue with the file list pagination:
- Added
getPageRequestParametersmethod: use it to load the next page parameters from$fileListResponse->getNext()/$fileListResponse->getPrevious(). - Attention: if you've implemented your own class for
FileApiInterface, addpublic getPageRequestParameters(?string $url): arraymethod to the implementation.