Fix an issue in FileUpload::ProcessAll() when aborting an upload, no tmp_name was defined and an empty fileContainer was used leading to an error message Warning --> Creating default object from empty value FileUpload.php 263
Improvement: a File object can now reference a non-existing file without error (just like its SplFileInfo parent)
Fix an issue in FileUpload::getNewHeaders() where the file's size attribute could be used without checking its existence.
PR to fix the issue #52
FileUpload::ProcessAll()
when aborting an upload, no tmp_name was defined and an empty fileContainer was used leading to an error messageWarning --> Creating default object from empty value FileUpload.php 263
File
object can now reference a non-existing file without error (just like its SplFileInfo parent)FileUpload::getNewHeaders()
where the file'ssize
attribute could be used without checking its existence.