burzum / cakephp-file-storage

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.
MIT License
197 stars 84 forks source link

Issues with upload for 1:1 #221

Open dereuromark opened 3 years ago

dereuromark commented 3 years ago

The behavior, when attached for uploading, should create additional *Tmp relations. Those would be used for uploading then. This way they wont intersect with the existing image on the entity property and cause partial overwrite or strange side effects. Once fully uploaded the auto-perge (if enabled) kicks in and there is only 1 image in this case still after redirect.

burzum commented 3 years ago

Can you provide an isolated PR with test coverage for this feature and make it optional, means being able to enable and disable it on the behavior? I'll accept such a PR and solution.