Download > Manual Download > A php file upload class library
This PHP file upload class is mainly used to upload files, including pictures, videos, and word documents. In fact, it is recommended to use it to process pictures. The main reason for recommendation is that this class is very standardized, and basically all upload parameters are They can all be defined in the class without modification in php.ini
Instructions for use:
By using PHP's global array $_FILES, you can upload files from the client computer to the remote server. The first parameter is the input name of the form, and the second subscript can be "name", "type", "size" ", "tmp_name" or "error".
like this:
$_FILES["file"]["name"] - The name of the uploaded file
$_FILES["file"]["type"] - The type of file being uploaded
$_FILES["file"]["size"] - Size of the uploaded file, in bytes
$_FILES["file"]["tmp_name"] - The name of the temporary copy of the file stored on the server
$_FILES["file"]["error"] - Error code caused by file upload
This is a very simple way to upload files. For security reasons, you should add restrictions on who has permission to upload files.
All resources on this website are contributed and published by netizens, or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this website are for learning and reference only. Please do not use them for commercial purposes, otherwise you will be responsible for all consequences incurred! If there is any infringement, please contact us to delete and remove it. Contact information: admin@php.cn