PHP - Store Images in SESSION data?

后端 未结 7 956
一向
一向 2020-12-30 01:21

Can you store an image in a PHP SESSION ?

I have a multi-step registration process using PHP on my site. On one of the steps, the users can upload their company log

相关标签:
7条回答
  • 2020-12-30 01:56

    When a file is uploaded, it gets assigned a temporary name in the $_FILES array. I don't know the exact lifespan of those files, but you might be able to capture that name in the session and put off the move_uploaded_file() call until after the CC is verified.

    Or, you could do the CC step first.

    0 讨论(0)
提交回复
热议问题