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
The
todo
file has always had a message about adding more data to theFile
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 callingFile
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