I found the fix. It was a stupid IE8 enhanced security.
Here's the link to the solution I found.
http://www.vadapt.com/fakepath-inter...virtual-media/
Might be helpful to anyone who is using php file coding to upload files to a server using IE8 as this new IE changed a default path which screws up the program.
Thanks Regeneration for helping.