Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 3.73 KB

File metadata and controls

60 lines (44 loc) · 3.73 KB

Changes of the FileStorage plugin

List of changes done to the plugin versions

0.5.0

  • Feature: Implementing a method to the ImageStorage model that allows it to get all versions of an image.
  • Feature: Implementing a feature to "replace" one file with another via a callback in FileStorage::afterSave() that checks if an old file id was passed. This is interesting when you want to replace an image with another for example an avatar after uploading it.
  • Feature: Implementing a method to the UploadValidatorBehavior that allows you to validate the size of an image.
  • Feature: Implementing a callback implementation to the FileStorage model that allows the implementation of "model" (the field in the DB table) specific validation callbacks.
  • Fix: Updating Specific-Adapter-Configurations with the correct composer package name for the new AWS SDK
  • Fix: Fixing a missing return in the magic __get() in the ImageStorage model. This could cause issues in rare cases.
  • Updating the Installation instructions, trying to make it more clear that certain storage backends require additional configuration like S3, Dropbox, Opencloud...
  • Misc: Updated documentation

0.4.2

  • Fix: Fixing a typo in one of the recommended packages in composer.json

0.4.1

  • Fix: Updating the package name in composer.json
  • Misc: Adding the installer name to composer.json

0.4.0

  • Change: Removed deprecated ImageStorage::createVersions()
  • Change: Replaced the static calls of CakeEventManager with getEventManager() in the models
  • Feature: Configurable fallback images through Configure::write('Media.fallbackImages..), see ImageHelper::fallbackImage()
  • Feature: Added AbstractStorageEventListener that can be used as base for all event listeners
  • Feature: Added S3StorageListener, stores files to S3, no image processing done in this listener
  • Misc: Fixed a bunch of coding standard issues
  • Misc: Updated documentation

0.3.3

  • Updating the Gaufrette Vendor lib
  • Updating readme.md
  • Fix: Coding standard fixes.
  • Fix: burzum#35
  • Fix: 2.4 and php5 compatibility, fixed strict errors for model callbacks

0.3.2

  • Fix: Removed model FileStorage::$createVersions property, instead of creating no versions no file at all was saved. As replacement for FileStorage::$createVersions the LocalImageStorageListener won't create any revisions if it can find any configuration for the given model. This caused a notice before and further issues.
  • Fix: The event ImageStorage.beforeSave was not triggered
  • Fix: StorageManager::config($configName) now returns the correct config instead of always active
  • Fix: ImageStorage::afterSave() does not call the parent anymore to avoid that the regular file storage event listener saves the image already, this happened when an image and a normal file were used within the same form
  • Fix: Duplicate error message when UploadValidatorBehavior::validateAllowedMimeTypes() fails
  • Change: LocalImageProcessingListener is deprecated, used ImageProcessingListener
  • Change: The / that was prepended in the ImageHelper::imageUrl has been move to the LocalImageProcessingListener because the / won't be used by all, mostly external, adapters
  • Change: LocalImageProcessingListener::_tmpFile() is throwing an exception now instead of returning false
  • Feature: Adding a new ImageProcessingListener that works with Amazon S3 and Local adapters, it can be pretty simple enhanced, let me know or do a PR with your changes for another adapter
  • Feature: ImageProcessingListener can be configured to preserve the original filename instead of using an uuid for the filename, see it's constructor
  • Feature: Added jpeg to the allowed extensions besides jpg of the ImageStorage model

Change log before 0.3.2

Not available.