Houston, we have a problem.
PHP File Upload
upload_file.php
- $_FILES["file"]["name"] - the name of the uploaded file
- $_FILES["file"]["type"] - the type of the uploaded file
- $_FILES["file"]["size"] - the size in bytes of the uploaded file
- $_FILES["file"]["tmp_name"] - the name of the temporary copy of
the file stored on the server - $_FILES["file"]["error"] - the error code resulting from the file
upload
Проверка расширения файла (gif, jpeg, jpg или png)