There are actually 2 page involve in my project.The 1st page is a form that to submit the uploaded image into 2nd page based on action=\"2page.php\"
and will di
send your file to a php script with jQuery and return the temp name and path to jQuery and put the response on a and then if the user clicks some button insert that temporal image to your database with a new jQuery
$.post()
to another php script so one php to get the file and another to insert it on your db
This link will help you sending files with AJAX or jQuery