Giter VIP home page Giter VIP logo

Comments (2)

weierophinney avatar weierophinney commented on June 26, 2024 1

The component originated in the Zend Framework 1 series, and was ported to a namespaced version with the other components when we originally started working on ZF2.

Additions to zend-filter and zend-validator for validating and handling uploaded files largely removed the need for the Zend\File\Transfer component, but it's kept primarily because some users had ported existing ZF1 code to ZF2. (As noted, it also contains a couple utilities outside the file transfer subcomponent.)

We'll be fixing #19 soon; this was an example of a new feature revealing a lack of tests, leading to broken functionality for some users once merged. (One note: I'd argue with the new feature making it "broken"; you should never rely on the client-supplied filename, and depending on the file having the same name as transmitted by the client is a potential security vector! Since #19 changes the names, I'd argue it's more secure now.)

from zend-file.

yourithielen avatar yourithielen commented on June 26, 2024

Thanks for your reply @weierophinney.

The problems we were having were also related to #15. We use the file name supplied by getFileInfo() only for displaying it to the user, not for the actual filename on disk.

from zend-file.

Related Issues (17)

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.