How to display or preview a uploaded image after submitted in PHP without save to database?

前端 未结 4 1356
北恋
北恋 2021-01-19 07:07

There are actually 2 page involve in my project.The 1st page is a form that to submit the uploaded image into 2nd page based on action=\"2page.php\" and will di

4条回答
  •  我在风中等你
    2021-01-19 07:30

    You would only save the file to your database when you choose to. When uploaded, the file will be saved in your temp directory. From there you will have to tell php to move it to a real directory using move_uploaded_file().

提交回复
热议问题