Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将文件存储在会话变量中,以便我可以在表单向导的下一步中使用这些会话?像这样
$_SESSION['fileupload']=$_FILES['fileupload'];
上传文件时将文件存储在服务器上,然后在会话中存储文件名/路径,这将允许您在向导的下一步中使用该文件。
将文件内容存储在会话中是没有意义的,并且会耗尽服务器上的资源。