You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$newfile = newUploadedFile($tmpname, $file->getClientOriginalName(), null, null, true); //WARNING: this is enabling 'test mode' - which is gross, but otherwise the file won't be treated as 'uploaded'
80
-
if ($newfile->isValid()) {
81
-
$file = $newfile;
93
+
if ($tmpresults !== false) {
94
+
$newfile = newUploadedFile($tmpname, $file->getClientOriginalName(), null, null, true); //WARNING: this is enabling 'test mode' - which is gross, but otherwise the file won't be treated as 'uploaded'
95
+
if ($newfile->isValid()) {
96
+
$file = $newfile;
97
+
}
82
98
}
83
99
}
84
100
}
101
+
$file_contents = null; //try to save on memory, I guess?
0 commit comments