Upload file with JavaScript and PHP
Image file can either be selected or dragged and drop in designated area if supported
Image file is uploaded by php on server
File name is stored in database with accompanying id
File is uploaded to folder with database id apart of filename.
Image can be deleted by clicking the available 'x' that is located in upper right-hand corner of element
Image is deleted by send id via ajax to upload_file.php