How to rename uploaded file before saving it into a directory?

前端 未结 5 884
清酒与你
清酒与你 2020-11-22 03:20

Below is the code I used in order to upload files into a directory. It works fine. My main question is:

move_uploaded_file() is the one that saves t

5条回答
  •  感情败类
    2020-11-22 03:56

    You guess correctly. Read the manual page for move_uploaded_file. Set the second parameter to whereever your want to save the file.

    If it doesn't work, there is something wrong with your $fileName. Please post your most recent code.

提交回复
热议问题