In this section, we use PHP code to upload files to a local folder and display them on the current page.
According to the idea mentioned in the previous section, we first create a simple form for uploading files
图片上传
Note here:
An image preview is created at the bottom of the page to display the uploaded file.
The PHP code can later display the file name, size, length and width of the file saved in the local folder.
Secondly, we need to make some restrictions on uploaded files:
Types of uploaded files: $uptypes
Alright Set the upload file size, upload file path, etc. Here we have added image watermark settings.
Students who have watched this course are also learning