Why isn't my php move file script actually moving the file?

前端 未结 3 1968
庸人自扰
庸人自扰 2021-01-26 02:49

I am uploading files to a server using php and while the move_uploaded_file function returns no errors, the file is not in the destination folder. As you can see I am using the

3条回答
  •  盖世英雄少女心
    2021-01-26 03:15

    your calls to is_uploaded_file and move_uploaded_file vary. for is_uploaded_file you are checking the 'name' and for move_uploaded_file you are passing in 'tmp_name'. try changing your call to move_uploaded_file to use 'name'

提交回复
热议问题