Gargron / fileupload

PHP FileUpload library that supports chunked uploads
MIT License
460 stars 87 forks source link

Added more data to the file container #34

Closed adelowo closed 7 years ago

adelowo commented 7 years ago

The todo file has always had a message about adding more data to the File object that is returned after a upload. This PR does just that.

That data comes from a standard file library, \SplFileInfo. The change led to a lot of test rewrite as most of them were calling File without an arg (the filename), since the base class \SplFileInfo needs something in it's constructor..

Also took the advantage to clean some of the code up