ADmad
ADmad
I have raised other concerns on the related pull request https://github.com/zendframework/zend-diactoros/pull/378#discussion_r345771214.
@mattsah `SplFileInfo` is meant for file paths (whether they exist or not). It's not meant to be used for stream paths. Treating stream paths as non existent file paths is...
> I did a quick testing with CakePHP 4.2.10. It is compatible. Sorry, that's not good enough. You need to run the testsuite with CakePHP 4 as part of your...
Most likely in the next major we are only going to keep the immutable classes and drop the mutable ones, which should simply things a bit.
> Or tied to Cake v5? This is a separate lib so not really, we were just hoping to get it done in time for Cake 5. > Or something...
> The problem is not how to determine the file size and type, is where do we put that code that does this? It should be in validation methods shouldn't...
Just FYI, how I provide cropping feature is use js code to just generate the cropping dimensions and submit it in a separate field without touching the actual upload file....
> I don't think it should be in validation. If not in validation then how can I prevent someone from submitting a non image base64 encoded data?
Unless cake's validator can be used to validate the mime type of base64 encoded data before any other processing begins, I am a big "NO" on adding this feature to...