使用PHP将本地文件上载到FTP服务器

I have searched everywhere but didn't got a perfect answer. I am using WAMP to run PHP on local machine. I have an tag to accept file from local machine and have to upload this to FTP server.

My code is working perfectly fine but only if file is present directly on base path i.e. /wamp/www/ but if I pick file from desktop to upload, it didn't actually pass path of file to action php file instead just pass on file name.

Is there a way to achieve this functionality?

Thanks Saransh