I wanted a fancy upload bar for my website and felt this one's pretty cool I have had different problems but finally managed to upload.
Question : How do I get the path of the uploaded file to insert in my database?
I wanted a fancy upload bar for my website and felt this one's pretty cool I have had different problems but finally managed to upload.
Question : How do I get the path of the uploaded file to insert in my database?
There is no way to get the file path as it is stored on the client machine (security issue).
You can get only the file name.
EDIT: Although some browsers (IE) may provide you with the path you cannot and should not rely on it.
$HTTP_POST_FILES: php.net/manual/en/features.file-upload.php -- although $_FILES should also work (according to the link). A comment there suggests this: "If $_FILES is always empty, check the method of your form. It should be POST. Default method of a form is GET."