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

前端 未结 5 895
清酒与你
清酒与你 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 04:04

    The move_uploaded_file will return false if the file was not successfully moved you can put something into your code to alert you in a log if that happens, that should help you figure out why your having trouble renaming the file

提交回复
热议问题