Upload Files and Images in PHP with Validation | PHP Tutorial | Learn PHP Programming | Image Upload

preview_player
Показать описание
File uploading in PHP is an important task. In this video, file or image uploading is explained step by step and also validations are applied to the file for extension checking and file size.

************************************************
Attribute used in the form:
encytype:  The enctype attribute specifies how the form-data should be encoded when submitting it to the server.

Three values can be given to enctype depending on the application you are using-

1. application/x-www-form-urlencoded
Its the by default value in which all characters are encoded before sent (spaces are converted to "+" symbols, and special characters are converted to ASCII HEX values)

2. multipart/form-data
No characters are encoded. This value is required when you are using forms that have a file upload control

3. text/plain
Spaces are converted to "+" symbols, but no special characters are encoded

*************************************************

Links to other videos: