php - multi-step form with file upload

前端 未结 3 1807
忘掉有多难
忘掉有多难 2021-01-20 18:19

I can\'t seem to find clarification. I have 7 steps and the second one is to upload a file. The problem I am having is that on the final step when I finalize the form and tr

3条回答
  •  Happy的楠姐
    2021-01-20 19:08

    With "temp folder" they don't mean /temp.

    After the upload, you should actually save the file in some folder, maybe with the user's session id as name. Then, with the last step, you should move that file to its definitive location.

    Temp files (like, actual temporary file) are destroyed once the program who created them exits (that means usually, in php, after the next output page is sent to the client).

提交回复
热议问题