Skip to content

Releases: uploadcare/uploadcare-php

v4.2.0

09 Nov 20:57
Compare
Choose a tag to compare

v4.1.1

08 Jun 17:45
2ab664f
Compare
Choose a tag to compare
  • Retrieve the Metadata without additional requests when using getMetadata.
  • You can still get the fresh metadata for the file by calling getMetadata method from the MetadataApiInterface.

via #204

v4.1.0

21 Mar 12:36
e633940
Compare
Choose a tag to compare

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 returns Uploadcare\Interfaces\File\FileInfoInterface

Added

  • Uploadcare\Interfaces\UploaderInterface::syncUploadFromUrl method for synchronically uploading a file from a remote URL
  • Uploadcare\Interfaces\UploaderInterface::getSignature method for get signature to use in third-party uploaders

Removed

  • Uploadcare\Interfaces\Api\GroupApiInterface::storeGroup($id)
  • Uploadcare\Group::store()

v4.0.2

08 Feb 06:13
e715c00
Compare
Choose a tag to compare

Added

  • Method removeKey to remove medatada keys
  • Samples for all API requests

v4.0.1

18 Dec 08:22
66233f8
Compare
Choose a tag to compare

Removed

Deprecated

  • The $addFields parameter of FileApiInterface::listFiles method

Added

  • GroupApiInterface::removeGroup($id) method to delete a group

v4.0.0

25 Oct 15:27
eec01f2
Compare
Choose a tag to compare

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() — see FileInfoInterface::getContentInfo()

Added

  • Support for REST API 0.7
  • 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;
  • 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 image
    • checkAwsRecognition(string $id): check the status of an Add-On execution request that had been started using the Execute Add-On operation
    • requestAntivirusScan($id, bool $purge = false): execute ClamAV virus checking Add-On for a given target
    • checkAntivirusScan(string $id): check the status of an Add-On execution request that had been started using the Execute Add-On operation
    • requestRemoveBackground($id, ?RemoveBackgroundRequestInterface $backgroundRequest = null): execute remove.bg background image removal Add-On for a given target
    • checkRemoveBackground(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 returns AppDataInterface with information about addon-applications and associated data:
    • AwsRecognitionLabelsInterface: information from previously executed requestAwsRecognition of image;
    • ClamAvVirusScanInterface: information from ClamAV antivirus scan
    • RemoveBgInterface: data from previously executed requestRemoveBackground remove.bg addon

v3.2.4

22 Jul 10:48
24a275e
Compare
Choose a tag to compare

Allow to use guzzlehttp/psr7:^2.

v3.2.3

04 Apr 12:29
Compare
Choose a tag to compare

Added a Y-m-d\TH:i:s\Z input date format additionally to the Y-m-d\TH:i:s.u\Z.

v3.2.2

28 Mar 11:53
6563d2d
Compare
Choose a tag to compare

Fix for an issue with the file list pagination:

  • Added getPageRequestParameters method: use it to load the next page parameters from $fileListResponse->getNext()/$fileListResponse->getPrevious().
  • Attention: if you've implemented your own class for FileApiInterface, add public getPageRequestParameters(?string $url): array method to the implementation.

v3.2.1

09 Feb 09:35
Compare
Choose a tag to compare

Resolved issue with invalid signed urls being generated for image processing (#186).