Cakephp File Storage Versions Save

Abstract file storage and upload plugin for CakePHP. Write to local disk, FTP, S3, Dropbox and more through a single interface. It's not just yet another uploader but a complete storage solution.

3.0.0-beta

4 years ago

Version 3 is for CakePHP 4.0. This is a beta version, so expect bugs and changes.

2.1.0

5 years ago

07030bf5cfc0149d640ad0cba6565be9cca604f4 Added test for Image::imageUrl 3c91789692ced93dcc402e20f266d923648f1948 Merge branch '2.0' of https://github.com/burzum/cakephp-file-storage into 2.0 9848c6de54dedff5eb647e0761e9f3b8859d076a Fix url generation in cake if hash is empty 6fe964885c5547475cf8d44e58a21c62858a0f4c Try not to manually install/update composer & the dependencies 7a612d2f752433596b9c74457c322fe1315c9ba1 Do not allow failures in Travis CI with PHP 7.3 06ba45a19c9ea9361422180d29c668617c9cad2f Allow Gaufrette 0.7.x & 0.8.x side by side 1e2acf3701cffd7738f6c5df4ab6076bb077de87 Update Gaufrette to 0.8.1 cd81cf197ffb4fe2fcd56fb12a0a91ea6efcae00 Allow failures in Travis with PHP 7.3 3f53ed731f9e456618673d5861c0d31c29072e0d Load Plugin for CakePHP greater or equal 3.7.0 f300fbb85c1d38dab852681f2cb32a848a4c1a95 Add empty Plugin class f4a1555f45843a131a4d280145951656116c481c Only load the plugin during test suite bootstrap when lower than CakePHP 3.7 bc3234b8134aec75c98080cc6eeb109750d413ba Add backwards compatibility to CakePHP lower than 3.7.0 a1ed7e5d36a8982280e7cb9d292dab5d5ee222d3 Remove unnecessary plugin loading of Burzum/Imagine 70533bc22b628612679d9e7d35d5520c898500e8 Comment out full if clause, not just body 52f73ef15d27d06c9d78c2459c7feade4613e3ef Simplify path extraction 21e9156d51d0985b77427e97ba10ba724306942c Update to CakePHP 3.7.5 3256eb38e80964ed5c13a409fdeb11da3d195361 Add PHP 7.3 to test suite c0b3eefbe1d0a98fda5e9124f6404d0f64b8a7c2 Skip log set config in bootstrap if already defined 4650ea080eb7e59138cdc2da7f7531071b114781 Fix deprecated warnings for CakePHP 3.7

1.2.1

7 years ago

1.2.0

7 years ago

1.2 is mostly just an upgrade to CakePHP 3.4. CakePHP 3.4 is required to run this release.

1.1.4

8 years ago

Exceptions to the rescue!

There is now an exception throw if a listener can't work with a specific adapter. Also I've introduced a new BaseListener that doesn't have any restrictions on which adapter it will take. In theory you can use it with any storage backend as long as the path it builds for the files is compatible with your chosen storage backend.

The reason for this change is that you'll end up with the "Why the fuck is it not storing my file?" because there is no hard break when the described scenario happens. The exception with it's informative message should make this now pretty clear.

For details please review this commit https://github.com/burzum/cakephp-file-storage/commit/9bece866838923725d966e97637f11d001476179

A new shell command...

...has been introduced to store a file via command line.

bin/cake storage store <some-file-to-store-here>
File successfully saved!
UUID: ebb21e79-029d-441d-8f2e-d8c20ca8f5a9
Path: file_storage/18/ef/b4/ebb21e79029d441d8f2ed8c20ca8f5a9/<some-file-to-store-here>

Documentation update

The Quick Start tutorial has been updated as well.

1.1.3

8 years ago

Commit summary

  • cc787f7 - Adding fileToUploadArray for uploadArray, keeping uploadArray as alias
  • 8e08f63 - Improving the BasePathBuilderTest
  • bdd98d6 - Improving the StorageException throwing
  • 31dcc62 - Added new events to prepare future changes.
  • 904c34c - Fixing the broken StorageUtils::normalizeGlobalFilesArray()
  • 63c57d1 - Refining the path building.

Added new events to prepare future changes.

:warning: The following events will be triggered after a file was stored/removed from a storage backend.

  • FileStorage.afterStoreFile
  • FileStorage.afterDeleteFile

You can listen to them to do image processing or other post processing there or flag them for processing or whatever else you want. This might become the new way of handling the already existing image processing functionality. In a later 2.0 release.

1.1.0

8 years ago
  • PathBuilders have been introduced! The complete logic of building the storage path and filenames lives now in this set of classes.
  • The whole image processing system has been refactored as well.
  • Everything in Burzum\FileStorage\Event has been deprecated but will stay there until 2.0 to give people time to update. The replacements for the classes in there are now in Burzum\FileStorage\Storage\Listener
  • Everything in Burzum\FileStorage\Lib has been deprecated but will stay there until 2.0 to give people time to update. The replacements for the classes in there are now in Burzum\FileStorage\Storage\Storage

1.1.0-rc1

8 years ago
  • PathBuilders have been introduced! The complete logic of building the storage path and filenames lives now in this set of classes.
  • The whole image processing system has been refactored as well.
  • Everything in Burzum\FileStorage\Event has been deprecated but will stay there until 2.0 to give people time to update. The replacements for the classes in there are now in Burzum\FileStorage\Storage\Listener
  • Everything in Burzum\FileStorage\Lib has been deprecated but will stay there until 2.0 to give people time to update. The replacements for the classes in there are now in Burzum\FileStorage\Storage\Storage

1.1.0-beta1

8 years ago
  • PathBuilders have been introduced! The complete logic of building the storage path and filenames lives now in this set of classes.
  • The whole image processing system has been refactored as well.
  • Everything in Burzum\FileStorage\Event has been deprecated but will stay there until 2.0 to give people time to update. The replacements for the classes in there are now in Burzum\FileStorage\Storage\Listener
  • Everything in Burzum\FileStorage\Lib has been deprecated but will stay there until 2.0 to give people time to update. The replacements for the classes in there are now in Burzum\FileStorage\Storage\Storage

1.1.0-alpha1

8 years ago

This is the first release of the 1.1 branch of the plugin.

  • PathBuilders have been introduced! The complete logic of building the storage path and filenames lives now in this set of classes.
  • The whole image processing system has been refactored as well.
  • Everything in Burzum\FileStorage\Event has been deprecated but will stay there until 2.0 to give people time to update. The replacements for the classes in there are now in Burzum\FileStorage\Storage\Listener
  • Everything in Burzum\FileStorage\Lib has been deprecated but will stay there until 2.0 to give people time to update. The replacements for the classes in there are now in Burzum\FileStorage\Storage\Storage