Publish by Sifur Rahaman March 19, 2021, 3:02 pm
Many more methods are available for uploads file or image. But I talk to you best method for uploading an image or file. This method is not simple. It is a dynamic method. This method includes complete validation. Like – Define file extension (jpeg, png, zip, rar, etc.), Define File size (1MB = 1024KB), Define empty or not, etc. At first, go to https://localhost/phpmyadmin. Now create a database (bd_sifurrahaman). Inside this database, create a table (tbl_php). Inside this table, create three columns (id, caption, image). Now save this table and create a database, connection and make a connection to a MySQL database. Now write the below code
uploads file or image
best method
validation
(bd_sifurrahaman)
(tbl_php)
(id, caption, image)
connection
Note: Here we use the Bootstrap class to create a form. So if you want to design your form with Bootstrap, then you must add Bootstrap CSS and JS CDN