Recently, php has encountered problems when learning to upload files. The Code is as follows: upload.html: {code ...} upload. php: {code ...} when the runtime always prompts: {code ...} not defined? I'm Xiao Bai. Thank you !!! Recently, php has encountered problems when learning to upload files. The Code is as follows:
Upload.html:
Upload files
Upload. php:
The Image
When running, the following message is displayed:
Notice: Undefined index: myFile in D:\xampp\htdocs\form\upload.php on line 15
Not defined? I'm Xiao Bai. Thank you !!!
Reply content:
Recently, php has encountered problems when learning to upload files. The Code is as follows:
Upload.html:
Upload files
Upload. php:
The Image
When running, the following message is displayed:
Notice: Undefined index: myFile in D:\xampp\htdocs\form\upload.php on line 15
Not defined? I'm Xiao Bai. Thank you !!!
PHP does not have much problem, but the prompt "Undefined index" indicates an error occurred while uploading files. enctype = "multipart/form-data" indicates that data is not date. This setting is incorrect and cannot be done.
I am also looking for this problem. I can upload images or other things, but the video won't work. I don't have any restrictions. I don't know if you have solved it.