The selected images are uploaded to the folder specified by the ajax page refresh. File paths are saved as “hidden” type inputa. So you can easily save images to the database.
When you want to upload more than one image, select the image and then use the crop tool to bring it to the point you want to cut. Later, when you click the “Approve” button, the official background will be saved in the specified directory and the image path will be saved as “hidden” type input. When you upload the picture again, it will write the new picture name by assigning ”” to the same input. The hidden input value when you upload the first image “simple_image.jpg” will continue as “simple_image.jpg, simple2_image.jpg” when you upload another image. With the “Explode” function on the php side, you can easily save the data in the database by shredding the data.
Last Update | 15 December 2016 |
Published | 15 December 2016 |
High Resolution | Yes |
Compatible Browsers | IE11, Firefox, Safari, Opera, Chrome, Edge |
Files Included | HTML, CSS, PHP |
Tags | crop, custom resize image, image crop, image upload, loader, php, resize image crop, uploader |