Giter Club home page Giter Club logo

Comments (4)

michalbundyra avatar michalbundyra commented on August 19, 2024

Is there any progress on this already? Till then I have to use the plain $_FILES array for the validators mentioned above.


Originally posted by @BWorld at zendframework/zend-validator#62 (comment)

from laminas-validator.

michalbundyra avatar michalbundyra commented on August 19, 2024

No progress at this point; feel free to submit a patch if you need it sooner rather than later. 😉


Originally posted by @weierophinney at zendframework/zend-validator#62 (comment)

from laminas-validator.

michalbundyra avatar michalbundyra commented on August 19, 2024

No problem, $_FILES work as well.

I would like to do some contribution to a framework I have been using for several years now.
Whenever I have time I could look into it, write some tests for it etc.

As the title suggests 'add support' everything should be backward compatible? Could do that and keep all current tests working. Later on when the major version increases we could remove the BC code from the implementation.

Let me know how you think about the BC part.


Originally posted by @BWorld at zendframework/zend-validator#62 (comment)

from laminas-validator.

dbierer avatar dbierer commented on August 19, 2024

Shouldn't this issue be closed? It looks like the getFileInfo() method defined in Laminas\Validator\File\FileInformationTrait, used by most of the file validators, already checks to see if the supplied value is an instance of Psr\Http\Message\UploadedFileInterface and extracts the information accordingly. The only thing really missing is that the ability to accept an UploadedFileInterface is not mentioned in the doc block.

from laminas-validator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.