Call Us : +91-8376986802 (Viber, WhatsApp)

Define PHP Uploads?

PHP handles file uploads through different method.

POST method uploads: This allows user to upload both text and binary files. PHP has a number of authentication and file manipulation functions, a control over upload is possible.

Files can be uploaded in PHP by using the tag type=”file”. An upload form must have encytype=”multipart/form-data” , method also needs to be set to method=”post”. Also, hidden input MAX_FILE_SIZE before the file input. To restrict the size of files


Finally, using move_uploaded_file () the file can be uploaded. Parameters will be source file and destination file

Leave a Reply