Comments (2)
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.
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)
- Check Documentation For Other Things HOT 1
- Check Documentation Tables HOT 1
- Check For Blockquotes In Docs HOT 1
- Broken alias HOT 3
- [BUG] regression after #13, cannot find file using filename HOT 8
- An alias "fileupload" was requested but no service could be found. HOT 4
- Document the Transfer subcomponent HOT 1
- Document the ClassFileLocator
- Check All Headers In Documentation HOT 1
- Check Documentation Code Blocks HOT 1
- Add PHP 7.2 support
- Check Documentation For Other Things HOT 1
- Check Documentation Tables HOT 1
- Check For Blockquotes In Docs HOT 1
- Check All Headers In Documentation HOT 1
- Check Documentation Code Blocks HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zend-file.